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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 116.5 kB / 16.63 MB, free: 6.945 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.001105/0.001105, allocations: 197.8 kB / 17.55 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1619/0.1619, allocations: 38.02 MB / 329.4 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 66.28 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08717, allocations: 58.07 MB / 456.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005591/0.0928, allocations: 5.333 MB / 461.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003158/0.09598, allocations: 2.59 MB / 464.4 MB, free: 376 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003379/0.09634, allocations: 19.88 kB / 464.4 MB, free: 356 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.09743, allocations: 414.6 kB / 464.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001041/0.09848, allocations: 478.3 kB / 465.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006043/0.0991, allocations: 255.4 kB / 465.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007768/0.09989, allocations: 0.7437 MB / 466.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000521/0.1004, allocations: 361.5 kB / 466.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000447/0.1009, allocations: 326.7 kB / 466.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004405/0.1013, allocations: 346.8 kB / 467.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.304e-05/0.1014, allocations: 36 kB / 467.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008583/0.1023, allocations: 0.6273 MB / 467.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.1025, allocations: 211.4 kB / 468.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.1027, allocations: 238.9 kB / 468.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008618/0.1036, allocations: 0.81 MB / 469.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1036, allocations: 0 / 469.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1036, allocations: 4 kB / 469.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.1036, allocations: 0 / 469.2 MB, free: 11.54 MB / 350.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.0009065/0.1045, allocations: 0.7683 MB / 470 MB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1046, allocations: 11.89 kB / 470 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.881e-05/0.1047, allocations: 90.64 kB / 470.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001492/0.1062, allocations: 208 kB / 470.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.1066, allocations: 354.4 kB / 470.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.1066, allocations: 37.36 kB / 470.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.287e-05/0.1067, allocations: 44.31 kB / 470.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008415/0.1075, allocations: 0.6226 MB / 471.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.1076, allocations: 3.906 kB / 471.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.456e-05/0.1076, allocations: 19.98 kB / 471.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.844e-05/0.1077, allocations: 48.91 kB / 471.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008277/0.1085, allocations: 0.605 MB / 472 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/0.1114, allocations: 2.253 MB / 474.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005638/0.1119, allocations: 482.6 kB / 474.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.1122, allocations: 237.7 kB / 474.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.1123, allocations: 11.98 kB / 475 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.1123, allocations: 42.5 kB / 475 MB, free: 5.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.1123, allocations: 0 / 475 MB, free: 5.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.00309/0.1154, allocations: 1.707 MB / 476.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.1155, allocations: 81.11 kB / 476.8 MB, free: 3.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.1157, allocations: 283 kB / 477.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.1158, allocations: 37.69 kB / 477.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1159, allocations: 220.1 kB / 477.3 MB, free: 3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.116, allocations: 153.8 kB / 477.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.1161, allocations: 86.25 kB / 477.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1162, allocations: 350.7 kB / 477.9 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.1165, allocations: 177 kB / 478.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/0.1168, allocations: 290.4 kB / 478.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000632/0.1175, allocations: 0.5043 MB / 478.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.1175, allocations: 4 kB / 478.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001147/0.1186, allocations: 0.6809 MB / 479.5 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.1187, allocations: 4 kB / 479.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1187, allocations: 7.984 kB / 479.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005405/0.1192, allocations: 184.9 kB / 479.7 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003278/0.1196, allocations: 91.89 kB / 479.8 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/0.1227, allocations: 2.794 MB / 482.6 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.123, allocations: 27.92 kB / 482.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.123, allocations: 19.98 kB / 482.7 MB, free: 13.4 MB / 366.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.0002081/0.1232, allocations: 193.7 kB / 482.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/0.1233, allocations: 43.5 kB / 482.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.1244, allocations: 0.6297 MB / 483.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1244, allocations: 8 kB / 483.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.1244, allocations: 7.938 kB / 483.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.1244, allocations: 3.984 kB / 483.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.1264, allocations: 1.355 MB / 484.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1264, allocations: 0 / 484.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003374/0.1267, allocations: 75.89 kB / 485 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004196/0.1271, allocations: 148.9 kB / 485.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.1272, allocations: 11.94 kB / 485.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002561/0.1298, allocations: 2.568 MB / 487.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1298, allocations: 0 / 487.7 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.131, allocations: 0.957 MB / 488.6 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.144e-05/0.1311, allocations: 112.8 kB / 488.8 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.1312, allocations: 11.94 kB / 488.8 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.1314, allocations: 8 kB / 488.8 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.071e-05/0.1315, allocations: 35.95 kB / 488.8 MB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.1315, allocations: 15.98 kB / 488.8 MB, free: 6.938 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.1317, allocations: 198 kB / 489 MB, free: 6.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1317, allocations: 0 / 489 MB, free: 6.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005487/0.1322, allocations: 140.2 kB / 489.2 MB, free: 6.609 MB / 366.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.001445/0.1337, allocations: 1.507 MB / 490.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.1349, allocations: 0.7319 MB / 491.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1349, allocations: 0 / 491.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006186/0.1355, allocations: 426.8 kB / 491.8 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.136, allocations: 69.66 kB / 491.9 MB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005263/0.1413, allocations: 4.655 MB / 496.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.1417, allocations: 0.8746 MB / 497.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000195/0.1419, allocations: 71.22 kB / 497.5 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.142, allocations: 147.4 kB / 497.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1421, allocations: 0 / 497.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.154/4.296, allocations: 9.584 MB / 0.4953 GB, free: 4.422 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003306/4.296, allocations: 234 kB / 0.4955 GB, free: 4.164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/6.36, allocations: 4 kB / 0.4955 GB, free: 4.16 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)