Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002339/0.002339, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2434/0.2434, allocations: 38.5 MB / 342.5 MB, free: 8.086 MB / 270.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-master/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_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 69.3 kB / 478.6 MB, free: 33.44 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09399/0.09596, allocations: 61.25 MB / 0.5272 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.007816/0.1038, allocations: 6.156 MB / 0.5332 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003511/0.1073, allocations: 1.963 MB / 0.5351 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003522/0.1076, allocations: 19.88 kB / 0.5351 GB, free: 9.227 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001868/0.1095, allocations: 0.708 MB / 0.5358 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009556/0.1105, allocations: 382.1 kB / 0.5362 GB, free: 8.141 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.1115, allocations: 403.1 kB / 0.5366 GB, free: 7.746 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.1126, allocations: 0.9431 MB / 0.5375 GB, free: 6.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005974/0.1132, allocations: 408.1 kB / 0.5379 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006233/0.1138, allocations: 434.3 kB / 0.5383 GB, free: 5.969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007789/0.1146, allocations: 0.5647 MB / 0.5389 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.449e-05/0.1147, allocations: 56 kB / 0.5389 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004706/0.1152, allocations: 251.6 kB / 0.5392 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004176/0.1156, allocations: 418.9 kB / 0.5396 GB, free: 4.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000445/0.1161, allocations: 426 kB / 0.54 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.1172, allocations: 1.016 MB / 0.541 GB, free: 3.254 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1173, allocations: 4 kB / 0.541 GB, free: 3.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1173, allocations: 4 kB / 0.541 GB, free: 3.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.1173, allocations: 0 / 0.541 GB, free: 3.246 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.001894/0.1192, allocations: 1.09 MB / 0.542 GB, free: 2.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1192, allocations: 11.89 kB / 0.542 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001633/0.1194, allocations: 143.3 kB / 0.5422 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007108/0.1201, allocations: 140.3 kB / 0.5423 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.1211, allocations: 0.5443 MB / 0.5428 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.1212, allocations: 62.36 kB / 0.5429 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.1213, allocations: 79.89 kB / 0.543 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.1229, allocations: 1.134 MB / 0.5441 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.123, allocations: 3.938 kB / 0.5441 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.398e-05/0.123, allocations: 36 kB / 0.5441 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.764e-05/0.1231, allocations: 53.97 kB / 0.5442 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.1246, allocations: 0.8623 MB / 0.545 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00619/0.1308, allocations: 5.06 MB / 0.55 GB, free: 9.605 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007475/0.1315, allocations: 392 kB / 0.5503 GB, free: 9.207 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.1318, allocations: 197.7 kB / 0.5505 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.743e-05/0.1319, allocations: 15.95 kB / 0.5505 GB, free: 8.992 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.1319, allocations: 38.56 kB / 0.5506 GB, free: 8.945 MB / 414.1 MB Notification: Performance of pre-optimization done (n=43): time 2.364e-06/0.1319, allocations: 0 / 0.5506 GB, free: 8.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=44): time 0.001963/0.1339, allocations: 1.08 MB / 0.5516 GB, free: 7.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/0.1339, allocations: 89.23 kB / 0.5517 GB, free: 7.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005786/0.1345, allocations: 0.49 MB / 0.5522 GB, free: 7.246 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.1345, allocations: 37.7 kB / 0.5522 GB, free: 7.203 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000334/0.1349, allocations: 467.3 kB / 0.5527 GB, free: 6.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.135, allocations: 170.5 kB / 0.5528 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.1352, allocations: 154.5 kB / 0.553 GB, free: 6.418 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1354, allocations: 370.7 kB / 0.5533 GB, free: 6.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/0.1358, allocations: 237.8 kB / 0.5536 GB, free: 5.816 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006863/0.1365, allocations: 0.6171 MB / 0.5542 GB, free: 5.016 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.1377, allocations: 0.9379 MB / 0.5551 GB, free: 3.895 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.1377, allocations: 4 kB / 0.5551 GB, free: 3.891 MB / 414.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001472/0.1392, allocations: 0.8964 MB / 0.556 GB, free: 2.988 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.565e-05/0.1392, allocations: 8 kB / 0.556 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.1392, allocations: 20.12 kB / 0.556 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.541e-05/0.1392, allocations: 19.98 kB / 0.556 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/0.14, allocations: 215.6 kB / 0.5562 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.957e-05/0.14, allocations: 27.92 kB / 0.5562 GB, free: 2.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004681/0.1405, allocations: 51.91 kB / 0.5563 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.1406, allocations: 44 kB / 0.5563 GB, free: 2.609 MB / 414.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.0004336/0.141, allocations: 309.3 kB / 0.5566 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.896e-05/0.1411, allocations: 59.62 kB / 0.5567 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/0.1421, allocations: 0.5563 MB / 0.5572 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.1421, allocations: 8 kB / 0.5572 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1421, allocations: 0 / 0.5572 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1421, allocations: 3.984 kB / 0.5572 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002361/0.1445, allocations: 1.339 MB / 0.5585 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.1445, allocations: 0 / 0.5585 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004702/0.145, allocations: 111.9 kB / 0.5586 GB, free: 128 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.145, allocations: 16.19 kB / 0.5587 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.145, allocations: 12 kB / 0.5587 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.145, allocations: 4 kB / 0.5587 GB, free: 96 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.145, allocations: 7.938 kB / 0.5587 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008579/0.1459, allocations: 0.6459 MB / 0.5593 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.146, allocations: 132.7 kB / 0.5594 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/0.1461, allocations: 12 kB / 0.5595 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.1464, allocations: 19.98 kB / 0.5595 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.097e-05/0.1464, allocations: 35.95 kB / 0.5595 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.1465, allocations: 16 kB / 0.5595 GB, free: 15.17 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003706/0.1468, allocations: 330.8 kB / 0.5598 GB, free: 14.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1468, allocations: 0 / 0.5598 GB, free: 14.85 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000753/0.1476, allocations: 160 kB / 0.56 GB, free: 14.69 MB / 430.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.001237/0.1488, allocations: 1.209 MB / 0.5612 GB, free: 13.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1498, allocations: 0.5745 MB / 0.5617 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1498, allocations: 0 / 0.5617 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.1502, allocations: 225.2 kB / 0.5619 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/0.1509, allocations: 122.2 kB / 0.5621 GB, free: 12.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008359/0.1593, allocations: 5.793 MB / 0.5677 GB, free: 6.223 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007932/0.1601, allocations: 0.9996 MB / 0.5687 GB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006142/0.1607, allocations: 225 kB / 0.5689 GB, free: 4.977 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004926/0.1612, allocations: 255.3 kB / 0.5692 GB, free: 4.727 MB / 430.1 MB Notification: Performance of SimCode: time 1.403e-06/0.1612, allocations: 7.875 kB / 0.5692 GB, free: 4.719 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04185/0.2031, allocations: 11.56 MB / 0.5805 GB, free: 9.289 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.881/10.08, allocations: 1.406 kB / 0.5805 GB, free: 9.289 MB / 446.1 MB " [Timeout remaining time 650] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Units_fmu --startTime=0 --stopTime=0.1 --stepSize=4e-05 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.128992301877588]