Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor") translateModel(PowerSystems.Examples.AC3ph.Elementary.Sensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.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.0009803/0.0009803, allocations: 184.3 kB / 16.71 MB, free: 4.973 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.197/1.197, allocations: 225.7 MB / 243.2 MB, free: 8.508 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.000702/0.0007022, allocations: 102 kB / 294.4 MB, free: 9.512 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.2611/0.2611, allocations: 38.17 MB / 383.7 MB, free: 40.33 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003086/0.0003087, allocations: 12.22 kB / 453.6 MB, free: 8.789 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2902, allocations: 59.15 MB / 0.5007 GB, free: 38.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.004578/0.2948, allocations: 4.646 MB / 0.5052 GB, free: 38.4 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.2975, allocations: 2.401 MB / 0.5076 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.2978, allocations: 25 kB / 0.5076 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002226/0.298, allocations: 59.61 kB / 0.5076 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000583/0.2986, allocations: 261.9 kB / 0.5079 GB, free: 36.17 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005637/0.2992, allocations: 233.7 kB / 0.5081 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008874/0.3001, allocations: 0.9997 MB / 0.5091 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006474/0.3007, allocations: 0.5498 MB / 0.5096 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.3011, allocations: 248.5 kB / 0.5099 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005475/0.3016, allocations: 409.8 kB / 0.5103 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.566e-05/0.3017, allocations: 23.38 kB / 0.5103 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004407/0.3021, allocations: 220.2 kB / 0.5105 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003043/0.3025, allocations: 228.8 kB / 0.5107 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.3028, allocations: 286.6 kB / 0.511 GB, free: 34.83 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005755/0.3033, allocations: 0.7116 MB / 0.5117 GB, free: 34.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3034, allocations: 1.781 kB / 0.5117 GB, free: 34.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3034, allocations: 1.281 kB / 0.5117 GB, free: 34.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.3034, allocations: 0 / 0.5117 GB, free: 34.62 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001084/0.3045, allocations: 0.7894 MB / 0.5125 GB, free: 34.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.3045, allocations: 12.84 kB / 0.5125 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004504/0.305, allocations: 93.27 kB / 0.5126 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.3054, allocations: 415.1 kB / 0.513 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.3054, allocations: 31.42 kB / 0.513 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.375e-05/0.3055, allocations: 49.39 kB / 0.513 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009034/0.3064, allocations: 0.852 MB / 0.5139 GB, free: 33.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.3065, allocations: 6.891 kB / 0.5139 GB, free: 33.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.773e-05/0.3065, allocations: 22.27 kB / 0.5139 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/0.3066, allocations: 61.83 kB / 0.5139 GB, free: 33.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008879/0.3075, allocations: 0.7956 MB / 0.5147 GB, free: 33.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002758/0.3103, allocations: 2.726 MB / 0.5174 GB, free: 31.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007147/0.311, allocations: 0.5769 MB / 0.518 GB, free: 30.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003805/0.3114, allocations: 449.9 kB / 0.5184 GB, free: 30.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.3115, allocations: 13.38 kB / 0.5184 GB, free: 30.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.3115, allocations: 35 kB / 0.5184 GB, free: 30.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.094e-06/0.3115, allocations: 0 / 0.5184 GB, free: 30.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.002193/0.3137, allocations: 1.881 MB / 0.5203 GB, free: 29.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.3137, allocations: 144.5 kB / 0.5204 GB, free: 29.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.314, allocations: 292.1 kB / 0.5207 GB, free: 29.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.314, allocations: 44.56 kB / 0.5207 GB, free: 29.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.705e-05/0.3141, allocations: 248.1 kB / 0.521 GB, free: 29.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.587e-05/0.3142, allocations: 187.9 kB / 0.5211 GB, free: 29.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/0.3142, allocations: 6.969 kB / 0.5211 GB, free: 29.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.54e-05/0.3143, allocations: 356 kB / 0.5215 GB, free: 28.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003405/0.3146, allocations: 342 kB / 0.5218 GB, free: 28.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003794/0.315, allocations: 480.8 kB / 0.5223 GB, free: 28.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008475/0.3159, allocations: 0.9793 MB / 0.5232 GB, free: 28.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3159, allocations: 0 / 0.5232 GB, free: 28.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001054/0.3169, allocations: 0.9766 MB / 0.5242 GB, free: 27.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.703e-05/0.317, allocations: 76.56 kB / 0.5243 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.317, allocations: 7.188 kB / 0.5243 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000159/0.3172, allocations: 44.31 kB / 0.5243 GB, free: 27.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.3175, allocations: 87.02 kB / 0.5244 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008/0.3183, allocations: 1.442 MB / 0.5258 GB, free: 26.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.3186, allocations: 32.61 kB / 0.5258 GB, free: 26.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.356e-05/0.3186, allocations: 28.78 kB / 0.5259 GB, free: 26.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002591/0.3189, allocations: 317.4 kB / 0.5262 GB, free: 25.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.97e-05/0.319, allocations: 42.59 kB / 0.5262 GB, free: 25.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.3202, allocations: 1.065 MB / 0.5272 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.3202, allocations: 9.656 kB / 0.5272 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3202, allocations: 3.219 kB / 0.5272 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3202, allocations: 11.36 kB / 0.5273 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/0.3221, allocations: 1.791 MB / 0.529 GB, free: 24.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3221, allocations: 7.125 kB / 0.529 GB, free: 24.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.3223, allocations: 56.56 kB / 0.5291 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.464e-05/0.3224, allocations: 33.58 kB / 0.5291 GB, free: 24.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.3225, allocations: 20.83 kB / 0.5291 GB, free: 24.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006978/0.3232, allocations: 1.432 MB / 0.5305 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3232, allocations: 3.344 kB / 0.5305 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.3243, allocations: 1.176 MB / 0.5317 GB, free: 22.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.3245, allocations: 174.3 kB / 0.5318 GB, free: 22.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.3246, allocations: 13.7 kB / 0.5318 GB, free: 22.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002331/0.3248, allocations: 26.98 kB / 0.5319 GB, free: 22.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.3249, allocations: 43.58 kB / 0.5319 GB, free: 22.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/0.325, allocations: 20.27 kB / 0.5319 GB, free: 22.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001347/0.3251, allocations: 200.9 kB / 0.5321 GB, free: 22.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3251, allocations: 3.938 kB / 0.5321 GB, free: 22.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000476/0.3256, allocations: 143.4 kB / 0.5323 GB, free: 22.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002056/0.3258, allocations: 152.5 kB / 0.5324 GB, free: 22.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.3271, allocations: 1.363 MB / 0.5337 GB, free: 21.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3271, allocations: 0 / 0.5337 GB, free: 21.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007668/0.3278, allocations: 0.9317 MB / 0.5347 GB, free: 21.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.3284, allocations: 72.09 kB / 0.5347 GB, free: 21.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.33, allocations: 1.636 MB / 0.5363 GB, free: 20.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.3302, allocations: 0.908 MB / 0.5372 GB, free: 19.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002498/0.3305, allocations: 98.62 kB / 0.5373 GB, free: 19.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.986e-05/0.3306, allocations: 25.81 kB / 0.5373 GB, free: 19.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.9e-07/0.3306, allocations: 0 / 0.5373 GB, free: 19.7 MB / 378.7 MB Notification: Performance of Templates: time 0.008947/0.3395, allocations: 5.649 MB / 0.5428 GB, free: 19.25 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches