Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.00168/0.00168, allocations: 119.9 kB / 17.79 MB, free: 5.137 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.001412/0.001412, allocations: 185.2 kB / 20.73 MB, free: 2.207 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.421/1.421, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.2002/0.2002, allocations: 38.5 MB / 342.5 MB, free: 8.156 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.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 70.02 kB / 478.6 MB, free: 33.69 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1042, allocations: 61.26 MB / 0.5272 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005154/0.1094, allocations: 3.478 MB / 0.5306 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.1115, allocations: 1.512 MB / 0.5321 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1117, allocations: 11.94 kB / 0.5321 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008558/0.1125, allocations: 271 kB / 0.5324 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005709/0.1131, allocations: 274.9 kB / 0.5326 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003039/0.1134, allocations: 127.6 kB / 0.5328 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004136/0.1138, allocations: 343 kB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.1141, allocations: 105.9 kB / 0.5332 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002377/0.1143, allocations: 155.4 kB / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.1146, allocations: 171.4 kB / 0.5335 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.1146, allocations: 12 kB / 0.5335 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005605/0.1151, allocations: 351.1 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1153, allocations: 99.7 kB / 0.5339 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.1154, allocations: 103.5 kB / 0.534 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.1159, allocations: 358.8 kB / 0.5344 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1159, allocations: 0 / 0.5344 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1159, allocations: 3.938 kB / 0.5344 GB, free: 10.03 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1159, allocations: 4 kB / 0.5344 GB, free: 10.03 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000761/0.1167, allocations: 0.5215 MB / 0.5349 GB, free: 9.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1167, allocations: 15.89 kB / 0.5349 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.452e-05/0.1168, allocations: 50.73 kB / 0.535 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008799/0.1177, allocations: 100.7 kB / 0.5351 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.118, allocations: 274.9 kB / 0.5353 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.1181, allocations: 12.38 kB / 0.5353 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.1181, allocations: 16.38 kB / 0.5353 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.1186, allocations: 325.8 kB / 0.5357 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.1186, allocations: 3.938 kB / 0.5357 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.1187, allocations: 8 kB / 0.5357 GB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.409e-05/0.1187, allocations: 15.98 kB / 0.5357 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004851/0.1192, allocations: 295.7 kB / 0.536 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.1211, allocations: 1.256 MB / 0.5372 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004602/0.1215, allocations: 237 kB / 0.5374 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.1217, allocations: 89.73 kB / 0.5375 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.1217, allocations: 4 kB / 0.5375 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.1217, allocations: 34.56 kB / 0.5375 GB, free: 6.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.1217, allocations: 0 / 0.5375 GB, free: 6.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008453/0.1226, allocations: 446.8 kB / 0.538 GB, free: 6.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.1227, allocations: 93.11 kB / 0.538 GB, free: 6.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.1229, allocations: 202.3 kB / 0.5382 GB, free: 5.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.1229, allocations: 25.7 kB / 0.5383 GB, free: 5.766 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.123, allocations: 168.1 kB / 0.5384 GB, free: 5.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.511e-05/0.1231, allocations: 55.53 kB / 0.5385 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.856e-05/0.1232, allocations: 49.66 kB / 0.5385 GB, free: 5.484 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1233, allocations: 326.8 kB / 0.5388 GB, free: 5.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.1235, allocations: 91.95 kB / 0.5389 GB, free: 5.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.1237, allocations: 153.9 kB / 0.5391 GB, free: 4.887 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.124, allocations: 258.3 kB / 0.5393 GB, free: 4.605 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.124, allocations: 0 / 0.5393 GB, free: 4.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004657/0.1245, allocations: 301.2 kB / 0.5396 GB, free: 4.305 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1245, allocations: 7.984 kB / 0.5396 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1245, allocations: 7.938 kB / 0.5396 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1246, allocations: 4 kB / 0.5396 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.1248, allocations: 55.91 kB / 0.5397 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1248, allocations: 4 kB / 0.5397 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.125, allocations: 16.27 kB / 0.5397 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.125, allocations: 8 kB / 0.5397 GB, free: 4.203 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (27): * Single equations (assignments): 27 * 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.0001522/0.1251, allocations: 157.7 kB / 0.5399 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.028e-05/0.1252, allocations: 19.86 kB / 0.5399 GB, free: 4.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004004/0.1256, allocations: 233.8 kB / 0.5401 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1256, allocations: 4 kB / 0.5401 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1256, allocations: 0 / 0.5401 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1256, allocations: 3.984 kB / 0.5401 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.127, allocations: 0.9516 MB / 0.541 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.127, allocations: 4 kB / 0.541 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.1272, allocations: 39.92 kB / 0.5411 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.1272, allocations: 4 kB / 0.5411 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.1272, allocations: 12.44 kB / 0.5411 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.236e-06/0.1272, allocations: 11.92 kB / 0.5411 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.1272, allocations: 8 kB / 0.5411 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004541/0.1277, allocations: 409.1 kB / 0.5415 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.295e-05/0.1278, allocations: 105 kB / 0.5416 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.683e-05/0.1278, allocations: 19.81 kB / 0.5416 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.128, allocations: 15.98 kB / 0.5416 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.128, allocations: 23.92 kB / 0.5417 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.128, allocations: 12 kB / 0.5417 GB, free: 1.984 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.1282, allocations: 147 kB / 0.5418 GB, free: 1.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1282, allocations: 0 / 0.5418 GB, free: 1.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.1285, allocations: 56 kB / 0.5419 GB, free: 1.785 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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.0007678/0.1293, allocations: 0.9442 MB / 0.5428 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.1297, allocations: 213.8 kB / 0.543 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1297, allocations: 0 / 0.543 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.1298, allocations: 101.3 kB / 0.5431 GB, free: 472 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.1303, allocations: 39.91 kB / 0.5431 GB, free: 432 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.1335, allocations: 2.701 MB / 0.5458 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.134, allocations: 0.7554 MB / 0.5465 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.1341, allocations: 61.47 kB / 0.5466 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.1342, allocations: 63.42 kB / 0.5466 GB, free: 12.59 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1342, allocations: 0 / 0.5466 GB, free: 12.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.1601, allocations: 4.194 MB / 0.5507 GB, free: 8.492 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.996/8.157, allocations: 10.05 kB / 0.5507 GB, free: 8.484 MB / 414.1 MB " [Timeout remaining time 652] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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: 10.96892561390996]