Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 212.6 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 258.3 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1916/0.1916, allocations: 38.55 MB / 353.2 MB, free: 12.36 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 63.91 kB / 493.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3641, allocations: 62.46 MB / 0.5427 GB, free: 292 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007723/0.3718, allocations: 4.756 MB / 0.5473 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004574/0.3764, allocations: 2.328 MB / 0.5496 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000488/0.3769, allocations: 18.53 kB / 0.5496 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.3783, allocations: 432.5 kB / 0.55 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001359/0.3796, allocations: 0.5116 MB / 0.5505 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000801/0.3804, allocations: 276.9 kB / 0.5508 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009532/0.3814, allocations: 0.7458 MB / 0.5515 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005663/0.3819, allocations: 290.2 kB / 0.5518 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00062/0.3826, allocations: 331.9 kB / 0.5521 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005366/0.3831, allocations: 363.8 kB / 0.5525 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-05/0.3832, allocations: 35.72 kB / 0.5525 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.3842, allocations: 0.531 MB / 0.553 GB, free: 8.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.3844, allocations: 205.7 kB / 0.5532 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002574/0.3847, allocations: 201.9 kB / 0.5534 GB, free: 8.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.3859, allocations: 0.7693 MB / 0.5542 GB, free: 7.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3859, allocations: 1.125 kB / 0.5542 GB, free: 7.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3859, allocations: 0 / 0.5542 GB, free: 7.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.3859, allocations: 0 / 0.5542 GB, free: 7.863 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001277/0.3872, allocations: 0.7096 MB / 0.5549 GB, free: 7.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.468e-05/0.3872, allocations: 14.05 kB / 0.5549 GB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.028e-05/0.3873, allocations: 15.97 kB / 0.5549 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.3874, allocations: 91.19 kB / 0.555 GB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001801/0.3892, allocations: 199.1 kB / 0.5552 GB, free: 7.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006515/0.3898, allocations: 305.6 kB / 0.5555 GB, free: 6.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.3899, allocations: 34.59 kB / 0.5555 GB, free: 6.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.491e-05/0.3899, allocations: 43.77 kB / 0.5555 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.3911, allocations: 0.6268 MB / 0.5561 GB, free: 6.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.3911, allocations: 9 kB / 0.5562 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.116e-05/0.3911, allocations: 20.47 kB / 0.5562 GB, free: 6.398 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.099e-05/0.3912, allocations: 35.42 kB / 0.5562 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.3922, allocations: 0.6089 MB / 0.5568 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003549/0.3958, allocations: 2.087 MB / 0.5588 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.3964, allocations: 369.5 kB / 0.5592 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003449/0.3968, allocations: 213.7 kB / 0.5594 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.3968, allocations: 4 kB / 0.5594 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.357e-05/0.3969, allocations: 38.56 kB / 0.5594 GB, free: 2.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.184e-06/0.3969, allocations: 4 kB / 0.5594 GB, free: 2.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.004702/0.4016, allocations: 1.55 MB / 0.561 GB, free: 1.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.244e-05/0.4017, allocations: 85.09 kB / 0.561 GB, free: 1.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005002/0.4022, allocations: 280.2 kB / 0.5613 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.394e-05/0.4022, allocations: 33.7 kB / 0.5613 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.4025, allocations: 236.5 kB / 0.5616 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.4027, allocations: 158.7 kB / 0.5617 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/0.4029, allocations: 94.14 kB / 0.5618 GB, free: 428 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002323/0.4031, allocations: 350.7 kB / 0.5621 GB, free: 68 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005039/0.4036, allocations: 176.8 kB / 0.5623 GB, free: 15.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006115/0.4042, allocations: 293.8 kB / 0.5626 GB, free: 15.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.4054, allocations: 0.4966 MB / 0.5631 GB, free: 15.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4054, allocations: 0 / 0.5631 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00207/0.4075, allocations: 0.677 MB / 0.5637 GB, free: 14.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.4075, allocations: 8 kB / 0.5637 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.4075, allocations: 4 kB / 0.5637 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000942/0.4085, allocations: 177.1 kB / 0.5639 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006323/0.4091, allocations: 103.8 kB / 0.564 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/0.4152, allocations: 2.656 MB / 0.5666 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005497/0.4158, allocations: 23.92 kB / 0.5666 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.346e-05/0.4158, allocations: 23.98 kB / 0.5667 GB, free: 11.24 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004241/0.4163, allocations: 201.8 kB / 0.5668 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.4164, allocations: 43.69 kB / 0.5669 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.4182, allocations: 0.6217 MB / 0.5675 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.4182, allocations: 4 kB / 0.5675 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.4182, allocations: 3.938 kB / 0.5675 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.4182, allocations: 11.98 kB / 0.5675 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.4206, allocations: 1.215 MB / 0.5687 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4206, allocations: 0 / 0.5687 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003874/0.421, allocations: 79.89 kB / 0.5688 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000497/0.4215, allocations: 148.7 kB / 0.5689 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.442e-05/0.4215, allocations: 12 kB / 0.5689 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.4248, allocations: 2.445 MB / 0.5713 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4248, allocations: 0 / 0.5713 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.4263, allocations: 0.9538 MB / 0.5722 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.4264, allocations: 39.8 kB / 0.5723 GB, free: 5.234 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.264e-05/0.4265, allocations: 11.94 kB / 0.5723 GB, free: 5.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.4267, allocations: 12 kB / 0.5723 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.642e-05/0.4268, allocations: 35.92 kB / 0.5723 GB, free: 5.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.4268, allocations: 12 kB / 0.5724 GB, free: 5.164 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002293/0.4271, allocations: 199.1 kB / 0.5725 GB, free: 4.969 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4271, allocations: 0 / 0.5725 GB, free: 4.969 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007229/0.4278, allocations: 144 kB / 0.5727 GB, free: 4.828 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00201/0.4298, allocations: 1.486 MB / 0.5741 GB, free: 3.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.4312, allocations: 0.6616 MB / 0.5748 GB, free: 2.625 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4312, allocations: 0 / 0.5748 GB, free: 2.625 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007223/0.432, allocations: 408.1 kB / 0.5752 GB, free: 2.215 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.4325, allocations: 68.48 kB / 0.5752 GB, free: 2.148 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006971/0.4395, allocations: 4.47 MB / 0.5796 GB, free: 13.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.4398, allocations: 262.7 kB / 0.5798 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002476/0.4401, allocations: 75.22 kB / 0.5799 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.4403, allocations: 143.4 kB / 0.5801 GB, free: 13 MB / 430.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4403, allocations: 0 / 0.5801 GB, free: 13 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03844/0.4787, allocations: 10.21 MB / 0.59 GB, free: 2.965 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/13.96, allocations: 64 / 0.59 GB, free: 2.965 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.002903840038925] Failed to read output from testmodel.py, exit status != 0: 14.146640423103236 14.176472944 13.785967402 Calling exit ...