Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/iPSL 1.1.1/package.mo", uses=false) Using package iPSL with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/iPSL 1.1.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(iPSL.Examples.Machines.PSAT.Order5_2test2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2") translateModel(iPSL.Examples.Machines.PSAT.Order5_2test2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001809/0.001808, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002446/0.002446, allocations: 187 kB / 16.25 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.71/1.71, allocations: 205.1 MB / 222.1 MB, free: 4.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/iPSL 1.1.1/package.mo): time 0.4469/0.4469, allocations: 50.18 MB / 319.6 MB, free: 2.52 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: iPSL requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: iPSL requested package Complex of version 3.2.1. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 79.89 kB / 388.7 MB, free: 1.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.161, allocations: 58.22 MB / 446.9 MB, free: 6.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(iPSL.Examples.Machines.PSAT.Order5_2test2): time 0.003721/0.1647, allocations: 2.459 MB / 449.4 MB, free: 4.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003262/0.168, allocations: 2.095 MB / 451.5 MB, free: 2.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002417/0.1683, allocations: 8 kB / 451.5 MB, free: 2.254 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003175/0.1686, allocations: 95.33 kB / 451.6 MB, free: 2.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004603/0.1691, allocations: 175.1 kB / 451.8 MB, free: 1.988 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001691/0.1708, allocations: 0.697 MB / 452.5 MB, free: 1.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008546/0.1717, allocations: 0.8773 MB / 453.3 MB, free: 428 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003948/0.1721, allocations: 262.4 kB / 453.6 MB, free: 152 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2943/0.4664, allocations: 425.5 kB / 454 MB, free: 39.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008765/0.4673, allocations: 0.5886 MB / 454.6 MB, free: 39.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.4675, allocations: 90.5 kB / 454.7 MB, free: 39.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000478/0.4679, allocations: 186.6 kB / 454.9 MB, free: 39.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001848/0.4681, allocations: 231.2 kB / 455.1 MB, free: 39.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003694/0.4685, allocations: 437.1 kB / 455.5 MB, free: 39.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.4697, allocations: 1.107 MB / 456.6 MB, free: 39.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4697, allocations: 3.422 kB / 456.6 MB, free: 39.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4697, allocations: 0 / 456.6 MB, free: 39.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.4697, allocations: 1.156 kB / 456.6 MB, free: 39.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.006236/0.476, allocations: 2.048 MB / 458.7 MB, free: 38.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.4761, allocations: 15.55 kB / 458.7 MB, free: 38.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003999/0.4801, allocations: 0.6567 MB / 459.4 MB, free: 38.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007796/0.4809, allocations: 0.5995 MB / 460 MB, free: 38.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002321/0.4811, allocations: 222 kB / 460.2 MB, free: 38.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.4813, allocations: 64.94 kB / 460.2 MB, free: 38.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.4831, allocations: 0.9435 MB / 461.2 MB, free: 38.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.4832, allocations: 0 / 461.2 MB, free: 38.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.602e-05/0.4833, allocations: 25.78 kB / 461.2 MB, free: 38.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.4833, allocations: 14.94 kB / 461.2 MB, free: 38.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001791/0.4851, allocations: 0.9254 MB / 462.1 MB, free: 38.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004718/0.4898, allocations: 3.168 MB / 465.3 MB, free: 37.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.4915, allocations: 0.8081 MB / 466.1 MB, free: 36.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.4926, allocations: 0.6625 MB / 466.8 MB, free: 36.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.4927, allocations: 13.16 kB / 466.8 MB, free: 36.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.4927, allocations: 49.81 kB / 466.8 MB, free: 36.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.215e-06/0.4927, allocations: 2.688 kB / 466.8 MB, free: 36.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=78): time 0.02355/0.5163, allocations: 6.546 MB / 473.4 MB, free: 35.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.5164, allocations: 66.41 kB / 473.5 MB, free: 35.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.5175, allocations: 0.6075 MB / 474.1 MB, free: 34.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001921/0.5177, allocations: 40.83 kB / 474.1 MB, free: 34.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.518, allocations: 355 kB / 474.5 MB, free: 34.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003064/0.5183, allocations: 271.9 kB / 474.7 MB, free: 34.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000283/0.5186, allocations: 122.3 kB / 474.8 MB, free: 34.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.5187, allocations: 386.2 kB / 475.2 MB, free: 34.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.5198, allocations: 0.5384 MB / 475.8 MB, free: 33.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.521, allocations: 0.6361 MB / 476.4 MB, free: 33.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01466/0.5357, allocations: 3.862 MB / 480.2 MB, free: 32.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/0.5358, allocations: 0.75 kB / 480.2 MB, free: 32.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.01364/0.5494, allocations: 3.705 MB / 484 MB, free: 31.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.5495, allocations: 6.812 kB / 484 MB, free: 31.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.5495, allocations: 3.016 kB / 484 MB, free: 31.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006354/0.5559, allocations: 1.714 MB / 485.7 MB, free: 31.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00068/0.5566, allocations: 96.88 kB / 485.8 MB, free: 31.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02179/0.5784, allocations: 9.175 MB / 494.9 MB, free: 26.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.5798, allocations: 125 kB / 495.1 MB, free: 26.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.5799, allocations: 26.36 kB / 495.1 MB, free: 26.5 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: order5Type2_Inputs_Outputs.delta:VARIABLE(flow=false start = order5Type2_Inputs_Outputs.delta0 fixed = true ) "Rotor angle (deg)" type: Real order5Type2_Inputs_Outputs.e1q:VARIABLE(start = order5Type2_Inputs_Outputs.e1q0 fixed = true ) "q-axis transient voltage" type: Real order5Type2_Inputs_Outputs.e2q:VARIABLE(start = order5Type2_Inputs_Outputs.e2q0 fixed = true ) "q-axis sub-transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(25,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005961/0.5805, allocations: 218.8 kB / 495.3 MB, free: 26.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.5808, allocations: 74.92 kB / 495.4 MB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01227/0.5931, allocations: 3.792 MB / 499.2 MB, free: 24.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.871e-05/0.5931, allocations: 15.73 kB / 499.2 MB, free: 24.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.5932, allocations: 1.125 kB / 499.2 MB, free: 24.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.5932, allocations: 3.984 kB / 499.2 MB, free: 24.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001455/0.5946, allocations: 1.049 MB / 0.4885 GB, free: 23.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.5947, allocations: 0 / 0.4885 GB, free: 23.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005557/0.5952, allocations: 84.31 kB / 0.4886 GB, free: 23.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005283/0.6005, allocations: 1.719 MB / 0.4903 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.46e-05/0.6006, allocations: 16.73 kB / 0.4903 GB, free: 22.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01621/0.6169, allocations: 8.049 MB / 0.4982 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.6169, allocations: 4.875 kB / 0.4982 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/0.6293, allocations: 4.599 MB / 0.5027 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003106/0.6296, allocations: 176 kB / 0.5028 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.6298, allocations: 12 kB / 0.5028 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009297/0.6307, allocations: 87.91 kB / 0.5029 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005771/0.6313, allocations: 184.7 kB / 0.5031 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.595e-05/0.6314, allocations: 31.67 kB / 0.5031 GB, free: 10.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004469/0.6318, allocations: 434.8 kB / 0.5035 GB, free: 10.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6318, allocations: 0 / 0.5035 GB, free: 10.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001029/0.6329, allocations: 335.5 kB / 0.5039 GB, free: 10.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (order5Type2_Inputs_Outputs.delta,order5Type2_Inputs_Outputs.w,order5Type2_Inputs_Outputs.e1q,order5Type2_Inputs_Outputs.e2q,order5Type2_Inputs_Outputs.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(26,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002679/0.6331, allocations: 129.2 kB / 0.504 GB, free: 9.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005529/0.6387, allocations: 2.132 MB / 0.5061 GB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.6387, allocations: 0 / 0.5061 GB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003882/0.6426, allocations: 1.493 MB / 0.5075 GB, free: 6.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006132/0.6432, allocations: 66.88 kB / 0.5076 GB, free: 6.215 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.646, allocations: 1.849 MB / 0.5094 GB, free: 4.367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.6465, allocations: 0.9737 MB / 0.5103 GB, free: 3.367 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003117/0.6468, allocations: 60.81 kB / 0.5104 GB, free: 3.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.647, allocations: 51.42 kB / 0.5104 GB, free: 3.258 MB / 382.1 MB Notification: Performance of SimCode: time 1.283e-06/0.647, allocations: 0 / 0.5104 GB, free: 3.258 MB / 382.1 MB Notification: Performance of Templates: time 0.03227/0.6792, allocations: 20.6 MB / 0.5306 GB, free: 14.7 MB / 414.1 MB make -j1 -f iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2.makefile (rm -f iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2.pipe ; mkfifo iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2.pipe ; head -c 1048576 < iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2.pipe >> ../files/iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2.sim & ./iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > iPSL_iPSL.Examples.Machines.PSAT.Order5_2test2.pipe 2>&1)