Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008508/0.0008509, allocations: 183.3 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007403/0.0007403, allocations: 104.3 kB / 294.4 MB, free: 9.477 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2684/0.2684, allocations: 38.17 MB / 383.7 MB, free: 40.35 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002792, allocations: 8 kB / 453.6 MB, free: 8.758 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2504, allocations: 59.15 MB / 0.5007 GB, free: 38.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.003728/0.2541, allocations: 4.236 MB / 0.5048 GB, free: 38.54 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.2554, allocations: 1.272 MB / 0.5061 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.2556, allocations: 25.34 kB / 0.5061 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.2558, allocations: 37.23 kB / 0.5061 GB, free: 37.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003486/0.2561, allocations: 161.1 kB / 0.5063 GB, free: 37.64 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.2563, allocations: 82.31 kB / 0.5064 GB, free: 37.6 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004961/0.2568, allocations: 0.5561 MB / 0.5069 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.257, allocations: 102.5 kB / 0.507 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.2572, allocations: 158.8 kB / 0.5071 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003051/0.2575, allocations: 199.7 kB / 0.5073 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.2576, allocations: 10.84 kB / 0.5073 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.518e-05/0.2576, allocations: 11.53 kB / 0.5074 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.2578, allocations: 99.88 kB / 0.5075 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.2579, allocations: 160.1 kB / 0.5076 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.2582, allocations: 291.9 kB / 0.5079 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2582, allocations: 0 / 0.5079 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2582, allocations: 0 / 0.5079 GB, free: 37.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.2582, allocations: 0 / 0.5079 GB, free: 37.02 MB / 378.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.0007897/0.259, allocations: 0.5739 MB / 0.5084 GB, free: 36.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.2591, allocations: 9 kB / 0.5085 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.2591, allocations: 41.34 kB / 0.5085 GB, free: 36.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.2595, allocations: 316.7 kB / 0.5088 GB, free: 36.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.2595, allocations: 23.59 kB / 0.5088 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.2596, allocations: 30.16 kB / 0.5088 GB, free: 36.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.26, allocations: 311.3 kB / 0.5091 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.26, allocations: 4.938 kB / 0.5091 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.26, allocations: 8.609 kB / 0.5092 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.26, allocations: 5.875 kB / 0.5092 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000331/0.2604, allocations: 213.7 kB / 0.5094 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.2616, allocations: 1.352 MB / 0.5107 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002759/0.2619, allocations: 143.9 kB / 0.5108 GB, free: 34.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.733e-05/0.262, allocations: 60.89 kB / 0.5109 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.262, allocations: 5.469 kB / 0.5109 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.397e-05/0.262, allocations: 41.22 kB / 0.5109 GB, free: 34.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.233e-06/0.262, allocations: 0 / 0.5109 GB, free: 34.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005657/0.2626, allocations: 364.1 kB / 0.5113 GB, free: 34.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.177e-05/0.2626, allocations: 80.67 kB / 0.5113 GB, free: 34.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.2628, allocations: 261 kB / 0.5116 GB, free: 34.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.909e-06/0.2628, allocations: 26.73 kB / 0.5116 GB, free: 34.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.2629, allocations: 201.5 kB / 0.5118 GB, free: 34.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.2629, allocations: 53.02 kB / 0.5119 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.2629, allocations: 5.062 kB / 0.5119 GB, free: 34.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.883e-05/0.263, allocations: 335.9 kB / 0.5122 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.032e-05/0.2631, allocations: 52.5 kB / 0.5122 GB, free: 33.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.2632, allocations: 161.6 kB / 0.5124 GB, free: 33.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.2634, allocations: 228.6 kB / 0.5126 GB, free: 33.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2634, allocations: 2.75 kB / 0.5126 GB, free: 33.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002776/0.2637, allocations: 246 kB / 0.5128 GB, free: 33.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.2637, allocations: 5.938 kB / 0.5129 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2637, allocations: 3.562 kB / 0.5129 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2637, allocations: 5.969 kB / 0.5129 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.2639, allocations: 48.14 kB / 0.5129 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.2639, allocations: 8.203 kB / 0.5129 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.2641, allocations: 14.47 kB / 0.5129 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.2641, allocations: 13.58 kB / 0.5129 GB, free: 33.25 MB / 378.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 0.0001042/0.2642, allocations: 160.8 kB / 0.5131 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.2642, allocations: 27.95 kB / 0.5131 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002619/0.2645, allocations: 192.2 kB / 0.5133 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2645, allocations: 2.969 kB / 0.5133 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2645, allocations: 0 / 0.5133 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2645, allocations: 3.375 kB / 0.5133 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.265, allocations: 0.5605 MB / 0.5139 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.265, allocations: 4.031 kB / 0.5139 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.2652, allocations: 26.31 kB / 0.5139 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2652, allocations: 3 kB / 0.5139 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.2652, allocations: 7.234 kB / 0.5139 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.2652, allocations: 10.69 kB / 0.5139 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2652, allocations: 0 / 0.5139 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.2654, allocations: 293.7 kB / 0.5142 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.2655, allocations: 97.86 kB / 0.5143 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.105e-05/0.2655, allocations: 2.531 kB / 0.5143 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.2656, allocations: 10.75 kB / 0.5143 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.169e-05/0.2657, allocations: 9.391 kB / 0.5143 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.2657, allocations: 5.875 kB / 0.5143 GB, free: 32.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001131/0.2658, allocations: 181.4 kB / 0.5145 GB, free: 32.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2658, allocations: 0 / 0.5145 GB, free: 32.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002847/0.2661, allocations: 51.25 kB / 0.5145 GB, free: 32.14 MB / 378.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 8.817e-05/0.2662, allocations: 117.1 kB / 0.5146 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002449/0.2665, allocations: 161.2 kB / 0.5148 GB, free: 31.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2665, allocations: 0 / 0.5148 GB, free: 31.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.761e-05/0.2666, allocations: 74.22 kB / 0.5149 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.267, allocations: 58.86 kB / 0.5149 GB, free: 31.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006534/0.2677, allocations: 0.6598 MB / 0.5156 GB, free: 31.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.2679, allocations: 0.7816 MB / 0.5163 GB, free: 30.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.268, allocations: 38.48 kB / 0.5164 GB, free: 30.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.139e-05/0.2681, allocations: 25.02 kB / 0.5164 GB, free: 30.79 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2681, allocations: 0 / 0.5164 GB, free: 30.79 MB / 378.7 MB Notification: Performance of Templates: time 0.004912/0.273, allocations: 2.107 MB / 0.5185 GB, free: 30.59 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches