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) 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-master/package.mo", uses=false) 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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 99.36 kB / 16.5 MB, free: 6.648 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.001545/0.001545, allocations: 194.5 kB / 17.42 MB, free: 6.066 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.372/1.372, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1709/0.1709, allocations: 38.04 MB / 329.3 MB, free: 9.07 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 66.64 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1056, allocations: 58.07 MB / 456.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.007646/0.1133, allocations: 6.556 MB / 462.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002599/0.1159, allocations: 1.695 MB / 464.4 MB, free: 244 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.1162, allocations: 43.69 kB / 464.5 MB, free: 200 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004119/0.1167, allocations: 115.3 kB / 464.6 MB, free: 84 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007035/0.1174, allocations: 346.5 kB / 464.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.1177, allocations: 135.9 kB / 465 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009713/0.1187, allocations: 1.153 MB / 466.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002833/0.119, allocations: 184.8 kB / 466.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.1194, allocations: 302.5 kB / 466.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000556/0.1199, allocations: 422.6 kB / 467.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.247e-05/0.12, allocations: 28 kB / 467.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.586e-05/0.1201, allocations: 28 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.1203, allocations: 195.5 kB / 467.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002658/0.1206, allocations: 266.5 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004705/0.1211, allocations: 0.5527 MB / 468.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1211, allocations: 0 / 468.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1211, allocations: 0 / 468.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1211, allocations: 0 / 468.1 MB, free: 12.5 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001374/0.1225, allocations: 0.8919 MB / 469 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1225, allocations: 12.03 kB / 469 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.1226, allocations: 64.12 kB / 469.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006871/0.1233, allocations: 478.7 kB / 469.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.082e-05/0.1234, allocations: 36.88 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.208e-05/0.1234, allocations: 44 kB / 469.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007985/0.1242, allocations: 0.5351 MB / 470.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1243, allocations: 0 / 470.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.1243, allocations: 16 kB / 470.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-05/0.1243, allocations: 25 kB / 470.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006175/0.125, allocations: 395.6 kB / 470.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.1272, allocations: 1.932 MB / 472.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005514/0.1278, allocations: 345.3 kB / 472.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.1281, allocations: 173.7 kB / 473.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.1281, allocations: 8 kB / 473.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003761/0.1285, allocations: 280.2 kB / 473.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.683e-06/0.1285, allocations: 3.938 kB / 473.3 MB, free: 7 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001716/0.1302, allocations: 1.179 MB / 474.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.781e-05/0.1303, allocations: 174.3 kB / 474.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003633/0.1307, allocations: 385.9 kB / 475.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1308, allocations: 37.69 kB / 475.1 MB, free: 5.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.1309, allocations: 291.6 kB / 475.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.426e-05/0.131, allocations: 114.4 kB / 475.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.1312, allocations: 94.16 kB / 475.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1313, allocations: 362.8 kB / 475.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.1315, allocations: 125 kB / 476.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.1318, allocations: 286.1 kB / 476.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.1324, allocations: 485.3 kB / 476.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1324, allocations: 0 / 476.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007191/0.1331, allocations: 0.5179 MB / 477.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.1331, allocations: 37.69 kB / 477.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1332, allocations: 8 kB / 477.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1332, allocations: 11.94 kB / 477.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004174/0.1336, allocations: 103.8 kB / 477.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.1336, allocations: 15.92 kB / 477.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.1339, allocations: 24.22 kB / 477.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.717e-05/0.1339, allocations: 40.03 kB / 477.6 MB, free: 2.438 MB / 350.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.0002424/0.1342, allocations: 244.2 kB / 477.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.051e-05/0.1343, allocations: 51.38 kB / 477.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006709/0.1349, allocations: 459.2 kB / 478.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.135, allocations: 4 kB / 478.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.135, allocations: 0 / 478.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.135, allocations: 0 / 478.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.1362, allocations: 0.9808 MB / 479.3 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1362, allocations: 0 / 479.3 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003331/0.1365, allocations: 63.95 kB / 479.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.1365, allocations: 4 kB / 479.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.1366, allocations: 8 kB / 479.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.191e-05/0.1366, allocations: 7.922 kB / 479.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1366, allocations: 4 kB / 479.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009434/0.1375, allocations: 0.7056 MB / 480.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.1377, allocations: 144.5 kB / 480.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.1378, allocations: 8 kB / 480.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.138, allocations: 19.92 kB / 480.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/0.1381, allocations: 19.97 kB / 480.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.365e-05/0.1381, allocations: 39.97 kB / 480.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002803/0.1384, allocations: 267.1 kB / 480.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1384, allocations: 0 / 480.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004391/0.1389, allocations: 107.9 kB / 480.7 MB, free: 15.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0001303/0.139, allocations: 115.2 kB / 480.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.1397, allocations: 407.9 kB / 481.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1397, allocations: 0 / 481.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.14, allocations: 267 kB / 481.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.1406, allocations: 90.06 kB / 481.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.1423, allocations: 1.17 MB / 482.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/0.1427, allocations: 0.8819 MB / 483.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002954/0.143, allocations: 92.31 kB / 483.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.008e-05/0.1431, allocations: 43.42 kB / 483.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1431, allocations: 0 / 483.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of Templates: time 0.008867/0.152, allocations: 3.925 MB / 487.6 MB, free: 8.168 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches