Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,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.Source") translateModel(PowerSystems.Examples.AC3ph.Elementary.Source,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.Source") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 182.5 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.224/1.224, allocations: 225.7 MB / 243.2 MB, free: 10.24 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.0007107/0.0007107, allocations: 93.78 kB / 294.4 MB, free: 9.758 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.3001/0.3001, allocations: 38.19 MB / 383.7 MB, free: 40.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002802, allocations: 8 kB / 453.6 MB, free: 8.844 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2632, allocations: 59.14 MB / 0.5007 GB, free: 39 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004248/0.2675, allocations: 4.554 MB / 0.5051 GB, free: 38.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.2696, allocations: 2.558 MB / 0.5076 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002261/0.2699, allocations: 26 kB / 0.5076 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.2701, allocations: 56.61 kB / 0.5077 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000507/0.2706, allocations: 265.4 kB / 0.508 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004847/0.2711, allocations: 220.4 kB / 0.5082 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008663/0.2719, allocations: 0.9521 MB / 0.5091 GB, free: 35.77 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006156/0.2726, allocations: 0.5989 MB / 0.5097 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.2729, allocations: 223.4 kB / 0.5099 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004587/0.2733, allocations: 369.5 kB / 0.5102 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.224e-05/0.2734, allocations: 19.97 kB / 0.5103 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004683/0.2739, allocations: 224.2 kB / 0.5105 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.2741, allocations: 207.3 kB / 0.5107 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.2744, allocations: 255 kB / 0.5109 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005986/0.275, allocations: 0.6466 MB / 0.5115 GB, free: 34.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.275, allocations: 0.9375 kB / 0.5116 GB, free: 34.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.275, allocations: 1.344 kB / 0.5116 GB, free: 34.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.275, allocations: 0 / 0.5116 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001043/0.2761, allocations: 0.6892 MB / 0.5122 GB, free: 34.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2761, allocations: 8.969 kB / 0.5122 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/0.2766, allocations: 92.11 kB / 0.5123 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/0.2771, allocations: 406 kB / 0.5127 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.2771, allocations: 23.91 kB / 0.5127 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.2772, allocations: 49.45 kB / 0.5128 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007873/0.278, allocations: 0.6868 MB / 0.5134 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.278, allocations: 6.781 kB / 0.5135 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/0.2781, allocations: 22.22 kB / 0.5135 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001693/0.2783, allocations: 66.7 kB / 0.5135 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007857/0.2791, allocations: 0.666 MB / 0.5142 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.2816, allocations: 2.658 MB / 0.5168 GB, free: 31.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004105/0.282, allocations: 318.3 kB / 0.5171 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/0.2823, allocations: 209.9 kB / 0.5173 GB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.2823, allocations: 7.562 kB / 0.5173 GB, free: 31.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.2823, allocations: 37.88 kB / 0.5173 GB, free: 31.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 1.563e-06/0.2824, allocations: 0 / 0.5173 GB, free: 31.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001612/0.284, allocations: 1.291 MB / 0.5186 GB, free: 30.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.284, allocations: 81.77 kB / 0.5187 GB, free: 30.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.2842, allocations: 290.8 kB / 0.5189 GB, free: 30.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.2842, allocations: 32.36 kB / 0.519 GB, free: 30.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.246e-05/0.2843, allocations: 255.8 kB / 0.5192 GB, free: 29.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.272e-05/0.2844, allocations: 136.8 kB / 0.5194 GB, free: 29.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.88e-05/0.2844, allocations: 7.984 kB / 0.5194 GB, free: 29.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.844e-05/0.2845, allocations: 360.2 kB / 0.5197 GB, free: 29.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/0.2847, allocations: 184.6 kB / 0.5199 GB, free: 29.44 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.285, allocations: 323.6 kB / 0.5202 GB, free: 29.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004931/0.2855, allocations: 0.5586 MB / 0.5207 GB, free: 28.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2855, allocations: 0 / 0.5207 GB, free: 28.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009269/0.2864, allocations: 0.6721 MB / 0.5214 GB, free: 28.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2865, allocations: 8.375 kB / 0.5214 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006367/0.2871, allocations: 487.6 kB / 0.5219 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.2875, allocations: 117.9 kB / 0.522 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.2877, allocations: 78.53 kB / 0.5221 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/0.2894, allocations: 3.021 MB / 0.525 GB, free: 25.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.2896, allocations: 23.33 kB / 0.525 GB, free: 25.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/0.2897, allocations: 20.94 kB / 0.525 GB, free: 25.61 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: 1 (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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001799/0.2899, allocations: 217 kB / 0.5253 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.165e-05/0.2899, allocations: 36.47 kB / 0.5253 GB, free: 25.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005286/0.2905, allocations: 462.5 kB / 0.5257 GB, free: 25.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.2905, allocations: 12.28 kB / 0.5257 GB, free: 25.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.2905, allocations: 2.938 kB / 0.5257 GB, free: 25.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2905, allocations: 0 / 0.5257 GB, free: 25.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.2916, allocations: 1.019 MB / 0.5267 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2916, allocations: 0 / 0.5267 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002983/0.2919, allocations: 70.64 kB / 0.5268 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2919, allocations: 3.719 kB / 0.5268 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.2919, allocations: 9.531 kB / 0.5268 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2919, allocations: 2.5 kB / 0.5268 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2919, allocations: 6.312 kB / 0.5268 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006624/0.2926, allocations: 0.7451 MB / 0.5276 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.869e-05/0.2927, allocations: 131.9 kB / 0.5277 GB, free: 24.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.2928, allocations: 14.28 kB / 0.5277 GB, free: 24.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.2929, allocations: 16.17 kB / 0.5277 GB, free: 24.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.293, allocations: 26.11 kB / 0.5277 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.293, allocations: 8.719 kB / 0.5277 GB, free: 24.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001339/0.2931, allocations: 203.3 kB / 0.5279 GB, free: 24.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2931, allocations: 4 kB / 0.5279 GB, free: 24.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003951/0.2935, allocations: 112.5 kB / 0.528 GB, free: 24.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.0001636/0.2937, allocations: 142.4 kB / 0.5282 GB, free: 23.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007648/0.2945, allocations: 0.7157 MB / 0.5289 GB, free: 23.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2945, allocations: 0 / 0.5289 GB, free: 23.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002081/0.2947, allocations: 212.6 kB / 0.5291 GB, free: 23.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004438/0.2952, allocations: 66.67 kB / 0.5291 GB, free: 23.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.2964, allocations: 1.37 MB / 0.5305 GB, free: 22.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.2967, allocations: 0.8775 MB / 0.5313 GB, free: 21.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002424/0.297, allocations: 106.2 kB / 0.5314 GB, free: 21.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.143e-05/0.297, allocations: 26.81 kB / 0.5315 GB, free: 21.87 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2971, allocations: 0 / 0.5315 GB, free: 21.87 MB / 378.7 MB Notification: Performance of Templates: time 0.006522/0.3036, allocations: 3.996 MB / 0.5354 GB, free: 21.56 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches