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.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.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,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=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001883/0.001883, allocations: 109.4 kB / 17.28 MB, free: 6.219 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.002452/0.002452, allocations: 193.3 kB / 18.21 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.409/2.409, allocations: 222.9 MB / 241.9 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.4711/0.4711, allocations: 38.03 MB / 330.1 MB, free: 9.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002225, allocations: 65.17 kB / 399 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1903, allocations: 58.05 MB / 457 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.0106/0.201, allocations: 4.695 MB / 461.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003252/0.2043, allocations: 1.079 MB / 462.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006646/0.205, allocations: 23.88 kB / 462.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003732/0.2054, allocations: 35.7 kB / 462.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.2065, allocations: 167.2 kB / 463 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.207, allocations: 79.92 kB / 463.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000866/0.2079, allocations: 414.5 kB / 463.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003872/0.2083, allocations: 122.2 kB / 463.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005242/0.2088, allocations: 167.3 kB / 463.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006334/0.2095, allocations: 223.2 kB / 464 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.133e-05/0.2096, allocations: 24 kB / 464 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.2097, allocations: 20 kB / 464 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.2099, allocations: 107.7 kB / 464.1 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003326/0.2103, allocations: 155.2 kB / 464.3 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004641/0.2107, allocations: 223.5 kB / 464.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.2108, allocations: 4 kB / 464.5 MB, free: 0.875 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.2108, allocations: 0 / 464.5 MB, free: 0.875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.2108, allocations: 0 / 464.5 MB, free: 0.875 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001836/0.2126, allocations: 0.6313 MB / 465.1 MB, free: 204 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.2127, allocations: 15.89 kB / 465.2 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.2129, allocations: 32.56 kB / 465.2 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007462/0.2136, allocations: 327 kB / 465.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.2137, allocations: 12.94 kB / 465.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.105e-05/0.2137, allocations: 24.12 kB / 465.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008154/0.2146, allocations: 324.5 kB / 465.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.2146, allocations: 0 / 465.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/0.2147, allocations: 12 kB / 465.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2147, allocations: 4 kB / 465.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006452/0.2153, allocations: 221.5 kB / 466.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.218, allocations: 1.344 MB / 467.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005583/0.2185, allocations: 133.2 kB / 467.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.2187, allocations: 65.75 kB / 467.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.2188, allocations: 11.92 kB / 467.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.057e-05/0.2188, allocations: 38.55 kB / 467.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.244e-06/0.2188, allocations: 0 / 467.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.001304/0.2202, allocations: 368.3 kB / 468 MB, free: 13.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/0.2202, allocations: 77.11 kB / 468.1 MB, free: 13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004136/0.2207, allocations: 258.9 kB / 468.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.2207, allocations: 37.83 kB / 468.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.221, allocations: 199.6 kB / 468.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/0.221, allocations: 39.39 kB / 468.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.2212, allocations: 53.59 kB / 468.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.2214, allocations: 342.7 kB / 469 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.2216, allocations: 51.97 kB / 469.1 MB, free: 12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002693/0.2218, allocations: 157.6 kB / 469.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004737/0.2223, allocations: 228.6 kB / 469.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.2224, allocations: 4 kB / 469.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006234/0.223, allocations: 245.3 kB / 469.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.223, allocations: 4 kB / 469.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.2231, allocations: 4 kB / 469.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/0.2231, allocations: 15.92 kB / 469.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.2234, allocations: 47.92 kB / 469.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.907e-05/0.2234, allocations: 11.92 kB / 469.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.2237, allocations: 8 kB / 469.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.2237, allocations: 15.98 kB / 469.8 MB, free: 11.17 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 (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 0.0002779/0.224, allocations: 169.8 kB / 470 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.977e-05/0.2241, allocations: 19.72 kB / 470 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005143/0.2246, allocations: 194.4 kB / 470.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.2247, allocations: 4 kB / 470.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.2247, allocations: 0 / 470.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.2247, allocations: 3.984 kB / 470.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.2258, allocations: 0.5499 MB / 470.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.2258, allocations: 12.02 kB / 470.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002101/0.226, allocations: 31.92 kB / 470.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/0.2261, allocations: 4 kB / 470.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.2261, allocations: 0 / 470.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.33e-05/0.2261, allocations: 11.92 kB / 470.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2261, allocations: 0 / 470.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005181/0.2266, allocations: 290.9 kB / 471.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.2268, allocations: 104.7 kB / 471.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.001e-05/0.2268, allocations: 0 / 471.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.2271, allocations: 11.94 kB / 471.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.201e-05/0.2271, allocations: 11.92 kB / 471.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.2272, allocations: 4 kB / 471.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002775/0.2274, allocations: 182 kB / 471.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2275, allocations: 0 / 471.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005946/0.2281, allocations: 52 kB / 471.4 MB, free: 9.426 MB / 350.1 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 0.0001667/0.2282, allocations: 99.25 kB / 471.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005123/0.2288, allocations: 167.7 kB / 471.7 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.2288, allocations: 0 / 471.7 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001805/0.229, allocations: 71.91 kB / 471.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00093/0.2299, allocations: 71.66 kB / 471.8 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.2315, allocations: 0.6769 MB / 472.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/0.232, allocations: 0.7792 MB / 473.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.2322, allocations: 27.44 kB / 473.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2322, allocations: 0 / 473.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of Templates: time 0.00953/0.2417, allocations: 3.165 MB / 476.5 MB, free: 4.316 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (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=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches