Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Units.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.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Units",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.001038/0.001038, allocations: 108.2 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.001024/0.001024, 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.255/1.255, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1915/0.1915, allocations: 38.03 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 69.75 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.08478, allocations: 58.05 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006517/0.09133, allocations: 6.098 MB / 463 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002788/0.09414, allocations: 1.947 MB / 465 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.09437, allocations: 27.81 kB / 465 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00161/0.09598, allocations: 0.7021 MB / 465.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006549/0.09665, allocations: 374.2 kB / 466.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008177/0.09748, allocations: 407 kB / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007755/0.09827, allocations: 0.9317 MB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005842/0.09886, allocations: 0.5 MB / 467.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004472/0.09932, allocations: 422.3 kB / 468.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006164/0.09994, allocations: 0.5296 MB / 468.9 MB, free: 12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.644e-05/0.1, allocations: 60 kB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004017/0.1004, allocations: 231.7 kB / 469.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003241/0.1008, allocations: 411.1 kB / 469.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000371/0.1012, allocations: 429.9 kB / 470 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008442/0.102, allocations: 0.9929 MB / 471 MB, free: 9.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.102, allocations: 0 / 471 MB, free: 9.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.102, allocations: 0 / 471 MB, free: 9.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.1021, allocations: 0 / 471 MB, free: 9.898 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001601/0.1037, allocations: 1.079 MB / 472 MB, free: 8.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1037, allocations: 11.89 kB / 472.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.1039, allocations: 139.2 kB / 472.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006655/0.1045, allocations: 135.8 kB / 472.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007/0.1052, allocations: 0.5128 MB / 472.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.498e-05/0.1053, allocations: 58.38 kB / 472.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.1054, allocations: 75.94 kB / 473 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.1068, allocations: 1.141 MB / 474.1 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.1068, allocations: 7.906 kB / 474.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/0.1069, allocations: 32 kB / 474.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.659e-05/0.107, allocations: 49.98 kB / 474.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.1082, allocations: 0.8662 MB / 475.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004749/0.1129, allocations: 5.067 MB / 480.1 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006691/0.1136, allocations: 419.9 kB / 480.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.1139, allocations: 213.7 kB / 480.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.166e-05/0.114, allocations: 11.91 kB / 480.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.114, allocations: 34.56 kB / 480.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.765e-06/0.114, allocations: 0 / 480.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00173/0.1158, allocations: 1.071 MB / 481.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.1158, allocations: 93.12 kB / 482 MB, free: 14.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004736/0.1163, allocations: 0.4939 MB / 482.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.1163, allocations: 33.7 kB / 482.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.1166, allocations: 461.5 kB / 482.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1167, allocations: 157.8 kB / 483.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.1169, allocations: 146.5 kB / 483.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.117, allocations: 374.7 kB / 483.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003195/0.1173, allocations: 229.9 kB / 483.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005387/0.1179, allocations: 0.621 MB / 484.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009434/0.1189, allocations: 0.934 MB / 485.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.1189, allocations: 4 kB / 485.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001199/0.1201, allocations: 0.8957 MB / 486.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.1201, allocations: 12.19 kB / 486.3 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.1201, allocations: 16 kB / 486.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.1202, allocations: 20 kB / 486.3 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006859/0.1209, allocations: 223.6 kB / 486.5 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.341e-05/0.1209, allocations: 27.88 kB / 486.6 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.1213, allocations: 55.86 kB / 486.6 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.489e-05/0.1213, allocations: 40 kB / 486.7 MB, free: 9.281 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003171/0.1217, allocations: 313.3 kB / 487 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.211e-05/0.1218, allocations: 51.34 kB / 487 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008539/0.1226, allocations: 0.5525 MB / 487.6 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1226, allocations: 4 kB / 487.6 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1226, allocations: 4 kB / 487.6 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.1227, allocations: 3.984 kB / 487.6 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.1245, allocations: 1.342 MB / 488.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1245, allocations: 0 / 488.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.1249, allocations: 107.9 kB / 489 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.1249, allocations: 7.938 kB / 489 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.125, allocations: 16 kB / 489 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-05/0.125, allocations: 11.92 kB / 489.1 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.125, allocations: 3.938 kB / 489.1 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007239/0.1257, allocations: 0.6405 MB / 489.7 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.1258, allocations: 136.3 kB / 489.8 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.635e-05/0.1259, allocations: 8 kB / 489.8 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.1262, allocations: 23.97 kB / 489.9 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.1262, allocations: 35.95 kB / 489.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.1263, allocations: 16 kB / 489.9 MB, free: 5.855 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003222/0.1266, allocations: 322.9 kB / 490.2 MB, free: 5.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1266, allocations: 0 / 490.2 MB, free: 5.543 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006396/0.1272, allocations: 164 kB / 490.4 MB, free: 5.383 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009529/0.1282, allocations: 1.193 MB / 491.6 MB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009741/0.1292, allocations: 0.6998 MB / 492.3 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1292, allocations: 0 / 492.3 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002902/0.1295, allocations: 240.8 kB / 492.5 MB, free: 3.207 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006366/0.1301, allocations: 116.3 kB / 492.6 MB, free: 3.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006135/0.1363, allocations: 5.868 MB / 498.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005391/0.1369, allocations: 0.9996 MB / 499.5 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005349/0.1374, allocations: 225 kB / 499.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/0.1377, allocations: 255.3 kB / 500 MB, free: 11.23 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1377, allocations: 0 / 500 MB, free: 11.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02799/0.1657, allocations: 11.15 MB / 0.4991 GB, free: 160 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.043/7.209, allocations: 18.62 kB / 0.4992 GB, free: 144 kB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_PowerSystems.Examples.Introductory.Units.pipe 2>&1)