Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009587/0.0009587, allocations: 71.77 kB / 21.69 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009586/0.0009586, allocations: 163.2 kB / 24.99 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.006/1.006, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2332/0.2332, allocations: 29.42 MB / 291.2 MB, free: 2.488 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=741,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=741,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 369.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/3.035e-05, allocations: 9.188 kB / 369.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005605/0.005635, allocations: 4.178 MB / 373.8 MB, free: 7.09 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.006969, allocations: 0.892 MB / 374.7 MB, free: 6.195 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001986/0.007168, allocations: 15.88 kB / 374.7 MB, free: 6.18 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002169/0.007385, allocations: 51.5 kB / 374.8 MB, free: 6.129 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005422/0.007927, allocations: 194.8 kB / 375 MB, free: 5.938 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.008154, allocations: 87.81 kB / 375 MB, free: 5.852 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003542/0.008508, allocations: 418.4 kB / 375.5 MB, free: 5.441 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.008695, allocations: 70.69 kB / 375.5 MB, free: 5.379 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.009037, allocations: 263.1 kB / 375.8 MB, free: 5.121 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.009305, allocations: 179.5 kB / 376 MB, free: 4.945 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.355e-05/0.009339, allocations: 24 kB / 376 MB, free: 4.922 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.523e-05/0.009374, allocations: 24 kB / 376 MB, free: 4.898 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.933e-05/0.009473, allocations: 119.6 kB / 376.1 MB, free: 4.781 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.521e-05/0.009568, allocations: 95.77 kB / 376.2 MB, free: 4.688 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002708/0.009839, allocations: 231.1 kB / 376.4 MB, free: 4.461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.009843, allocations: 4 kB / 376.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.009845, allocations: 0 / 376.4 MB, free: 4.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.009851, allocations: 0 / 376.4 MB, free: 4.457 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008038/0.01066, allocations: 0.6604 MB / 377.1 MB, free: 3.758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.0107, allocations: 15.98 kB / 377.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.989e-05/0.01078, allocations: 52.7 kB / 377.2 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.01113, allocations: 294.5 kB / 377.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.01116, allocations: 24.8 kB / 377.5 MB, free: 3.352 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.01118, allocations: 20.38 kB / 377.5 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.01147, allocations: 251.1 kB / 377.7 MB, free: 3.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.01148, allocations: 7.875 kB / 377.8 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.095e-05/0.0115, allocations: 12 kB / 377.8 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.01151, allocations: 4 kB / 377.8 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.01167, allocations: 102.8 kB / 377.9 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.01274, allocations: 1.505 MB / 379.4 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.01297, allocations: 110.2 kB / 379.5 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.17e-05/0.01304, allocations: 43.36 kB / 379.5 MB, free: 1.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.01305, allocations: 4 kB / 379.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.01308, allocations: 45.31 kB / 379.6 MB, free: 1.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.743e-06/0.01308, allocations: 0 / 379.6 MB, free: 1.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005499/0.01363, allocations: 276.6 kB / 379.8 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.01368, allocations: 77.11 kB / 379.9 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.01388, allocations: 310.2 kB / 380.2 MB, free: 408 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.01389, allocations: 29.7 kB / 380.2 MB, free: 372 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.01401, allocations: 250.8 kB / 380.5 MB, free: 116 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.01404, allocations: 51.69 kB / 380.5 MB, free: 64 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.606e-05/0.0141, allocations: 51.36 kB / 380.6 MB, free: 4 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.01424, allocations: 0.5079 MB / 381.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.754e-05/0.01429, allocations: 23.97 kB / 381.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.0144, allocations: 171.1 kB / 381.3 MB, free: 15.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.01458, allocations: 206.5 kB / 381.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.01458, allocations: 0 / 381.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002211/0.0148, allocations: 217 kB / 381.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.01482, allocations: 4 kB / 381.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.01483, allocations: 4 kB / 381.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.01484, allocations: 4 kB / 381.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.01497, allocations: 51.91 kB / 381.8 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.01498, allocations: 11.94 kB / 381.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.338e-05/0.01505, allocations: 4.438 kB / 381.8 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.01506, allocations: 16 kB / 381.8 MB, free: 14.66 MB / 362.7 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 (25): * Single equations (assignments): 25 * 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 9.2e-05/0.01515, allocations: 172.4 kB / 382 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.01519, allocations: 35.8 kB / 382 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002016/0.01539, allocations: 139.4 kB / 382.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.01539, allocations: 0 / 382.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.0154, allocations: 4 kB / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.0154, allocations: 3.984 kB / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.01581, allocations: 472.9 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.01581, allocations: 0 / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.635e-05/0.01589, allocations: 31.92 kB / 382.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.0159, allocations: 4.031 kB / 382.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.01591, allocations: 0 / 382.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.01591, allocations: 4 kB / 382.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.01591, allocations: 3.984 kB / 382.7 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.01611, allocations: 305.8 kB / 383 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.657e-05/0.01613, allocations: 39.73 kB / 383 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.01616, allocations: 7.922 kB / 383 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.012e-05/0.01622, allocations: 8 kB / 383 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.01624, allocations: 7.984 kB / 383 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.01625, allocations: 4 kB / 383 MB, free: 13.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001016/0.01635, allocations: 215 kB / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01635, allocations: 0 / 383.2 MB, free: 13.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.01656, allocations: 48 kB / 383.3 MB, free: 13.09 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 16 * 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 9.785e-05/0.01666, allocations: 99.19 kB / 383.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001786/0.01684, allocations: 108.2 kB / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.01684, allocations: 0 / 383.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.973e-05/0.01691, allocations: 59.66 kB / 383.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.01726, allocations: 62.16 kB / 383.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.0183, allocations: 0.506 MB / 384.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.028e-05/0.01837, allocations: 104.3 kB / 384.2 MB, free: 12.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.366e-05/0.01846, allocations: 38.27 kB / 384.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.01851, allocations: 20.5 kB / 384.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of SimCode: time 1.683e-06/0.01851, allocations: 0 / 384.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of Templates: time 0.004439/0.02295, allocations: 2.268 MB / 386.5 MB, free: 9.816 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1643458399921656]