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.00126/0.00126, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001302/0.001302, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.287/1.287, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3692/0.3692, allocations: 38.03 MB / 329.4 MB, free: 8.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 62.05 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08421/0.0854, allocations: 58.06 MB / 456.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.006989/0.09242, allocations: 7.35 MB / 463.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003263/0.0957, allocations: 2.318 MB / 466.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004849/0.0962, allocations: 47.69 kB / 466.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.09771, allocations: 0.6481 MB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000702/0.09842, allocations: 354.6 kB / 467.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008344/0.09927, allocations: 367.3 kB / 467.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000887/0.1002, allocations: 0.9355 MB / 468.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006643/0.1008, allocations: 0.5547 MB / 469 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000538/0.1014, allocations: 422.3 kB / 469.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006698/0.1021, allocations: 0.5725 MB / 470 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.304e-05/0.1022, allocations: 56 kB / 470 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004117/0.1026, allocations: 239.6 kB / 470.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003509/0.103, allocations: 423 kB / 470.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004175/0.1034, allocations: 426 kB / 471.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008838/0.1043, allocations: 1.005 MB / 472.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1043, allocations: 0 / 472.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1043, allocations: 0 / 472.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.278e-05/0.1043, allocations: 4 kB / 472.1 MB, free: 8.59 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.001685/0.106, allocations: 1.072 MB / 473.2 MB, free: 7.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1061, allocations: 11.89 kB / 473.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.1062, allocations: 135.3 kB / 473.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006746/0.1069, allocations: 139.8 kB / 473.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007546/0.1077, allocations: 0.5166 MB / 474 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.1077, allocations: 58.38 kB / 474 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.1078, allocations: 75.94 kB / 474.1 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.1093, allocations: 1.126 MB / 475.2 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.1094, allocations: 7.938 kB / 475.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.029e-05/0.1094, allocations: 36 kB / 475.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.787e-05/0.1095, allocations: 53.98 kB / 475.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001272/0.1108, allocations: 0.8623 MB / 476.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004811/0.1156, allocations: 5.067 MB / 481.3 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006488/0.1163, allocations: 419.8 kB / 481.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000291/0.1166, allocations: 213.7 kB / 481.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.986e-05/0.1166, allocations: 7.984 kB / 481.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1167, allocations: 42.56 kB / 481.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.933e-06/0.1167, allocations: 0 / 481.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001698/0.1184, allocations: 1.068 MB / 483 MB, free: 13.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.1184, allocations: 92.94 kB / 483.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004909/0.1189, allocations: 0.4939 MB / 483.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.119, allocations: 29.7 kB / 483.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002739/0.1193, allocations: 457.8 kB / 484.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.1194, allocations: 157.8 kB / 484.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002153/0.1196, allocations: 150.5 kB / 484.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1198, allocations: 370.7 kB / 484.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000389/0.1202, allocations: 241.8 kB / 485 MB, free: 11.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007391/0.121, allocations: 0.6171 MB / 485.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009955/0.122, allocations: 0.934 MB / 486.5 MB, free: 9.277 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.122, allocations: 8 kB / 486.5 MB, free: 9.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001253/0.1232, allocations: 0.8954 MB / 487.4 MB, free: 8.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1233, allocations: 12 kB / 487.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.1233, allocations: 12 kB / 487.4 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.1233, allocations: 20 kB / 487.4 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006617/0.124, allocations: 216.2 kB / 487.7 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.124, allocations: 35.86 kB / 487.7 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.1244, allocations: 55.86 kB / 487.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-05/0.1245, allocations: 36 kB / 487.8 MB, free: 7.988 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.0003268/0.1248, allocations: 309.3 kB / 488.1 MB, free: 7.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.1249, allocations: 55.28 kB / 488.1 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008834/0.1258, allocations: 0.5641 MB / 488.7 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.1258, allocations: 4 kB / 488.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.1258, allocations: 3.984 kB / 488.7 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1258, allocations: 0 / 488.7 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/0.1278, allocations: 1.336 MB / 490 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.1278, allocations: 4 kB / 490.1 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004239/0.1282, allocations: 107.9 kB / 490.2 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.1283, allocations: 7.938 kB / 490.2 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.1283, allocations: 12.25 kB / 490.2 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.1283, allocations: 11.94 kB / 490.2 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1283, allocations: 7.984 kB / 490.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000733/0.1291, allocations: 0.6365 MB / 490.8 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.1292, allocations: 132.4 kB / 491 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.841e-05/0.1293, allocations: 12 kB / 491 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.1295, allocations: 23.97 kB / 491 MB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.858e-05/0.1296, allocations: 31.97 kB / 491 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.1296, allocations: 15.98 kB / 491 MB, free: 4.562 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003169/0.1299, allocations: 330.9 kB / 491.4 MB, free: 4.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.13, allocations: 0 / 491.4 MB, free: 4.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006171/0.1306, allocations: 160 kB / 491.5 MB, free: 4.086 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.001043/0.1316, allocations: 1.206 MB / 492.7 MB, free: 2.828 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.1326, allocations: 0.692 MB / 493.4 MB, free: 2.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1326, allocations: 4 kB / 493.4 MB, free: 2.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.1329, allocations: 239.4 kB / 493.7 MB, free: 1.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006388/0.1336, allocations: 126.5 kB / 493.8 MB, free: 1.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006664/0.1402, allocations: 6.161 MB / 499.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.1408, allocations: 1.003 MB / 0.4892 GB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005369/0.1414, allocations: 225 kB / 0.4894 GB, free: 9.871 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/0.1417, allocations: 259.3 kB / 0.4897 GB, free: 9.617 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1417, allocations: 0 / 0.4897 GB, free: 9.617 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03346/0.1752, allocations: 11.05 MB / 0.5005 GB, free: 14.68 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002904/0.1755, allocations: 190.6 kB / 0.5006 GB, free: 14.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.006, allocations: 0 / 0.5006 GB, free: 14.43 MB / 398.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)