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.001106/0.001107, allocations: 107.5 kB / 16.92 MB, free: 6.145 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.001107/0.001107, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.271/1.271, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1625/0.1625, allocations: 38.02 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.22 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.08479, allocations: 58.07 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005488/0.09031, allocations: 4.914 MB / 461.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.09312, allocations: 2.481 MB / 464.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.09327, allocations: 11.94 kB / 464.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009849/0.09426, allocations: 442.1 kB / 464.8 MB, free: 88 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007834/0.09506, allocations: 0.5058 MB / 465.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.09554, allocations: 279.2 kB / 465.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000625/0.09617, allocations: 0.7321 MB / 466.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000426/0.09661, allocations: 349.5 kB / 466.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.09693, allocations: 306.7 kB / 467 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003633/0.0973, allocations: 322.8 kB / 467.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.09736, allocations: 36 kB / 467.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008389/0.09821, allocations: 0.6352 MB / 467.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.09839, allocations: 191.5 kB / 468.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002179/0.09861, allocations: 262.7 kB / 468.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007526/0.09937, allocations: 0.7479 MB / 469.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.09939, allocations: 0 / 469.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.09939, allocations: 0 / 469.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.09941, allocations: 0 / 469.1 MB, free: 11.75 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.0009762/0.1004, allocations: 0.7762 MB / 469.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1004, allocations: 11.97 kB / 469.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.835e-05/0.1005, allocations: 86.72 kB / 470 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001509/0.102, allocations: 204.1 kB / 470.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.1025, allocations: 358.3 kB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.1025, allocations: 29.38 kB / 470.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.704e-05/0.1026, allocations: 44.36 kB / 470.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008471/0.1034, allocations: 0.6265 MB / 471.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.1035, allocations: 15.83 kB / 471.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.468e-05/0.1035, allocations: 16 kB / 471.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-05/0.1036, allocations: 32.92 kB / 471.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008478/0.1044, allocations: 0.6089 MB / 471.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002903/0.1073, allocations: 2.257 MB / 474.2 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005886/0.1079, allocations: 482.6 kB / 474.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.1082, allocations: 233.7 kB / 474.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.1083, allocations: 8 kB / 474.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.1083, allocations: 42.55 kB / 474.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 3.036e-06/0.1083, allocations: 0 / 474.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003191/0.1115, allocations: 1.708 MB / 476.6 MB, free: 3.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.1116, allocations: 81.11 kB / 476.7 MB, free: 3.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.1119, allocations: 275 kB / 477 MB, free: 3.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.1119, allocations: 33.7 kB / 477 MB, free: 3.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.112, allocations: 232 kB / 477.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.1121, allocations: 153.8 kB / 477.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.1123, allocations: 78.25 kB / 477.5 MB, free: 2.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1124, allocations: 354.8 kB / 477.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.1126, allocations: 185 kB / 478 MB, free: 2.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.113, allocations: 282.4 kB / 478.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/0.1136, allocations: 0.5043 MB / 478.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1136, allocations: 0 / 478.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001091/0.1147, allocations: 0.6846 MB / 479.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.1147, allocations: 8.438 kB / 479.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.1147, allocations: 8 kB / 479.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005469/0.1153, allocations: 176.6 kB / 479.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003338/0.1156, allocations: 99.88 kB / 479.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/0.1189, allocations: 2.798 MB / 482.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.1191, allocations: 24.09 kB / 482.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.1192, allocations: 23.94 kB / 482.6 MB, free: 13.61 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.0001998/0.1194, allocations: 193.7 kB / 482.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.1194, allocations: 35.66 kB / 482.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.1205, allocations: 0.6376 MB / 483.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1205, allocations: 7.938 kB / 483.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.1206, allocations: 3.938 kB / 483.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1206, allocations: 4 kB / 483.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.1225, allocations: 1.355 MB / 484.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1225, allocations: 0 / 484.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.1229, allocations: 83.89 kB / 484.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004095/0.1233, allocations: 140.8 kB / 485 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.557e-05/0.1233, allocations: 15.98 kB / 485.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/0.1261, allocations: 2.564 MB / 487.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1261, allocations: 4.188 kB / 487.6 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.1274, allocations: 0.9569 MB / 488.6 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.4e-05/0.1275, allocations: 108.7 kB / 488.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.197e-05/0.1276, allocations: 15.94 kB / 488.7 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.1278, allocations: 12.03 kB / 488.7 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.642e-05/0.1278, allocations: 35.95 kB / 488.8 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.1279, allocations: 12 kB / 488.8 MB, free: 7.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.128, allocations: 201.9 kB / 489 MB, free: 6.949 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1281, allocations: 0 / 489 MB, free: 6.949 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005541/0.1286, allocations: 136 kB / 489.1 MB, free: 6.816 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.001565/0.1302, allocations: 1.504 MB / 490.6 MB, free: 5.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.1314, allocations: 0.7353 MB / 491.3 MB, free: 4.527 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1314, allocations: 4.875 kB / 491.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.1321, allocations: 426.4 kB / 491.8 MB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004859/0.1326, allocations: 64.83 kB / 491.8 MB, free: 4.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005506/0.1381, allocations: 4.479 MB / 496.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.1386, allocations: 0.8668 MB / 497.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001975/0.1388, allocations: 71.23 kB / 497.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.139, allocations: 143.4 kB / 497.4 MB, free: 14.26 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.139, allocations: 0 / 497.4 MB, free: 14.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05434/0.1933, allocations: 9.683 MB / 0.4952 GB, free: 4.676 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.77, allocations: 5.578 kB / 0.4952 GB, free: 4.672 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)