Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 107.2 kB / 16.51 MB, free: 6.707 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.001209/0.001209, allocations: 190.5 kB / 17.43 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: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1756/0.1756, allocations: 38.04 MB / 329.3 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.55 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1221, allocations: 58.07 MB / 456.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006185/0.1283, allocations: 4.71 MB / 460.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.1303, allocations: 1.103 MB / 462 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.1305, allocations: 23.81 kB / 462 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.1308, allocations: 35.7 kB / 462 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004875/0.1313, allocations: 159.3 kB / 462.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.1315, allocations: 79.86 kB / 462.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005223/0.132, allocations: 0.5218 MB / 462.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.1323, allocations: 105.7 kB / 462.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.1325, allocations: 147.2 kB / 463 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/0.1328, allocations: 199.2 kB / 463.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.859e-05/0.1329, allocations: 12 kB / 463.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.64e-05/0.1329, allocations: 12 kB / 463.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1331, allocations: 87.72 kB / 463.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.1332, allocations: 135.3 kB / 463.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.1335, allocations: 282.9 kB / 463.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1335, allocations: 0 / 463.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1335, allocations: 0 / 463.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1336, allocations: 0 / 463.8 MB, free: 0.8789 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001038/0.1346, allocations: 0.5932 MB / 464.3 MB, free: 240 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.1346, allocations: 12.03 kB / 464.4 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.72e-05/0.1347, allocations: 28.56 kB / 464.4 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005449/0.1353, allocations: 319 kB / 464.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.1353, allocations: 20.56 kB / 464.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.1354, allocations: 27.98 kB / 464.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.1359, allocations: 290.8 kB / 465 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1359, allocations: 3.938 kB / 465 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.1359, allocations: 8 kB / 465 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.1359, allocations: 8 kB / 465.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002863/0.1362, allocations: 177 kB / 465.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.1379, allocations: 1.232 MB / 466.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.1382, allocations: 109.2 kB / 466.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.515e-05/0.1383, allocations: 41.77 kB / 466.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1383, allocations: 4 kB / 466.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.1384, allocations: 38.5 kB / 466.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.1384, allocations: 0 / 466.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009667/0.1393, allocations: 492.6 kB / 467.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.1394, allocations: 81.09 kB / 467.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/0.1397, allocations: 250.7 kB / 467.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.1397, allocations: 29.64 kB / 467.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1399, allocations: 191.6 kB / 467.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.1399, allocations: 39.56 kB / 467.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.618e-05/0.14, allocations: 53.61 kB / 467.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.1402, allocations: 334.8 kB / 468.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.666e-05/0.1403, allocations: 35.98 kB / 468.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.1404, allocations: 139.6 kB / 468.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/0.1407, allocations: 188.7 kB / 468.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1407, allocations: 0 / 468.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003271/0.141, allocations: 209 kB / 468.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1411, allocations: 4.438 kB / 468.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.1411, allocations: 11.98 kB / 468.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.1411, allocations: 4.562 kB / 468.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.1413, allocations: 47.92 kB / 468.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.1413, allocations: 4 kB / 468.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1414, allocations: 7.938 kB / 468.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.1414, allocations: 15.98 kB / 468.7 MB, free: 11.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * 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.0001677/0.1416, allocations: 153.7 kB / 468.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.1417, allocations: 23.66 kB / 468.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.1419, allocations: 143.2 kB / 469.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.142, allocations: 4 kB / 469.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.142, allocations: 0 / 469.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.142, allocations: 3.938 kB / 469.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005791/0.1426, allocations: 471.3 kB / 469.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1426, allocations: 0 / 469.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.1427, allocations: 27.98 kB / 469.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1427, allocations: 0 / 469.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.1427, allocations: 7.938 kB / 469.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1428, allocations: 8.031 kB / 469.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1428, allocations: 0 / 469.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00036/0.1431, allocations: 278.7 kB / 469.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.411e-05/0.1432, allocations: 104.8 kB / 469.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.1433, allocations: 3.938 kB / 469.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.1434, allocations: 8.062 kB / 469.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.891e-05/0.1434, allocations: 11.98 kB / 470 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.1434, allocations: 0 / 470 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.1436, allocations: 170 kB / 470.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1436, allocations: 4 kB / 470.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003057/0.1439, allocations: 44 kB / 470.2 MB, free: 9.895 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0001253/0.144, allocations: 99.19 kB / 470.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002404/0.1443, allocations: 111.8 kB / 470.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1443, allocations: 0 / 470.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.113e-05/0.1444, allocations: 44.14 kB / 470.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.1449, allocations: 53.73 kB / 470.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.1459, allocations: 0.6473 MB / 471.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.1463, allocations: 0.7716 MB / 471.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.1465, allocations: 34.27 kB / 471.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.367e-05/0.1465, allocations: 23.42 kB / 471.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1465, allocations: 192 / 471.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of Templates: time 0.005265/0.1518, allocations: 1.904 MB / 473.9 MB, free: 6.164 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches