Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.001335/0.001335, 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.0014/0.0014, 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.434/1.434, allocations: 225.6 MB / 249.1 MB, free: 3.598 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.1801/0.1801, allocations: 38.52 MB / 342.5 MB, free: 8.062 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.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.09 kB / 478.6 MB, free: 33.64 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1055, allocations: 61.24 MB / 0.5272 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.008115/0.1136, allocations: 5.568 MB / 0.5327 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002542/0.1161, allocations: 1.371 MB / 0.534 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002712/0.1164, allocations: 23.88 kB / 0.534 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004596/0.1169, allocations: 135 kB / 0.5341 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008741/0.1177, allocations: 378.2 kB / 0.5345 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.1181, allocations: 159.7 kB / 0.5347 GB, free: 9.734 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009286/0.119, allocations: 0.7825 MB / 0.5354 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00032/0.1193, allocations: 165.7 kB / 0.5356 GB, free: 8.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000513/0.1198, allocations: 350.6 kB / 0.5359 GB, free: 8.438 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006449/0.1205, allocations: 426.5 kB / 0.5363 GB, free: 8.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.006e-05/0.1206, allocations: 40 kB / 0.5364 GB, free: 7.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.084e-05/0.1206, allocations: 40 kB / 0.5364 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00022/0.1209, allocations: 203.4 kB / 0.5366 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002905/0.1212, allocations: 278.5 kB / 0.5369 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007043/0.1219, allocations: 0.5795 MB / 0.5374 GB, free: 6.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1219, allocations: 0 / 0.5374 GB, free: 6.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1219, allocations: 0 / 0.5374 GB, free: 6.887 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.1219, allocations: 0 / 0.5374 GB, free: 6.887 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001613/0.1235, allocations: 0.907 MB / 0.5383 GB, free: 5.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.1235, allocations: 15.89 kB / 0.5383 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.1236, allocations: 78.72 kB / 0.5384 GB, free: 5.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.1237, allocations: 72.5 kB / 0.5385 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009444/0.1247, allocations: 0.5182 MB / 0.539 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.1247, allocations: 33 kB / 0.539 GB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.568e-05/0.1248, allocations: 39.94 kB / 0.539 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008739/0.1257, allocations: 0.5312 MB / 0.5396 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.1257, allocations: 0 / 0.5396 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.808e-05/0.1257, allocations: 20 kB / 0.5396 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-05/0.1258, allocations: 24.98 kB / 0.5396 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006745/0.1265, allocations: 387.6 kB / 0.54 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002805/0.1293, allocations: 1.932 MB / 0.5419 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000619/0.1299, allocations: 309.8 kB / 0.5422 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.1302, allocations: 169.6 kB / 0.5423 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.1302, allocations: 4 kB / 0.5423 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004274/0.1307, allocations: 284.1 kB / 0.5426 GB, free: 1.281 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.623e-06/0.1307, allocations: 0 / 0.5426 GB, free: 1.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.001963/0.1326, allocations: 1.204 MB / 0.5438 GB, free: 4 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001384/0.1328, allocations: 170.1 kB / 0.5439 GB, free: 15.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004666/0.1332, allocations: 393.8 kB / 0.5443 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.1333, allocations: 33.7 kB / 0.5443 GB, free: 15.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.1335, allocations: 300.2 kB / 0.5446 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.1336, allocations: 123 kB / 0.5447 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.1338, allocations: 90.2 kB / 0.5448 GB, free: 14.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.134, allocations: 366.8 kB / 0.5452 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002154/0.1342, allocations: 121 kB / 0.5453 GB, free: 14.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003774/0.1346, allocations: 286 kB / 0.5456 GB, free: 14.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006138/0.1352, allocations: 489.2 kB / 0.546 GB, free: 13.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1352, allocations: 0 / 0.546 GB, free: 13.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008023/0.136, allocations: 0.5218 MB / 0.5465 GB, free: 12.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.903e-05/0.136, allocations: 33.7 kB / 0.5466 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.136, allocations: 8 kB / 0.5466 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.1361, allocations: 8 kB / 0.5466 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004352/0.1365, allocations: 107.8 kB / 0.5467 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.1365, allocations: 8.5 kB / 0.5467 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.1368, allocations: 27.98 kB / 0.5467 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.737e-05/0.1368, allocations: 35.92 kB / 0.5468 GB, free: 12.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002965/0.1371, allocations: 247.3 kB / 0.547 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.591e-05/0.1372, allocations: 51.61 kB / 0.547 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007427/0.1379, allocations: 451.2 kB / 0.5475 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1379, allocations: 4 kB / 0.5475 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1379, allocations: 64 / 0.5475 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/0.1379, allocations: 11.98 kB / 0.5475 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/0.1394, allocations: 0.9859 MB / 0.5485 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1395, allocations: 3.938 kB / 0.5485 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003236/0.1398, allocations: 55.97 kB / 0.5485 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.1398, allocations: 4 kB / 0.5485 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.1398, allocations: 8 kB / 0.5485 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.025e-05/0.1398, allocations: 15.98 kB / 0.5485 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1398, allocations: 0 / 0.5485 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.1409, allocations: 0.7119 MB / 0.5492 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.1411, allocations: 144.8 kB / 0.5494 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/0.1411, allocations: 11.98 kB / 0.5494 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.1413, allocations: 16.06 kB / 0.5494 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.786e-05/0.1414, allocations: 31.84 kB / 0.5494 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.633e-05/0.1415, allocations: 35.94 kB / 0.5495 GB, free: 9.773 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003045/0.1418, allocations: 271.1 kB / 0.5497 GB, free: 9.512 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1418, allocations: 0 / 0.5497 GB, free: 9.512 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004571/0.1422, allocations: 100 kB / 0.5498 GB, free: 9.414 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.001365/0.1436, allocations: 1.259 MB / 0.5511 GB, free: 8.113 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006425/0.1442, allocations: 383.6 kB / 0.5514 GB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1442, allocations: 0 / 0.5514 GB, free: 7.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003186/0.1445, allocations: 223.2 kB / 0.5516 GB, free: 7.496 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.1452, allocations: 118.1 kB / 0.5517 GB, free: 7.391 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005531/0.1507, allocations: 4.129 MB / 0.5558 GB, free: 3.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005703/0.1513, allocations: 0.8937 MB / 0.5566 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002777/0.1516, allocations: 84.33 kB / 0.5567 GB, free: 2.008 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/0.1518, allocations: 171.4 kB / 0.5569 GB, free: 1.84 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1518, allocations: 0 / 0.5569 GB, free: 1.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.1876, allocations: 8.779 MB / 0.5655 GB, free: 9.223 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.114/9.301, allocations: 5.703 kB / 0.5655 GB, free: 9.219 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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: 12.378948953002691]