Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 182.6 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.225/1.225, allocations: 225.7 MB / 243.2 MB, free: 8.469 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.0006917/0.0006919, allocations: 96.97 kB / 294.4 MB, free: 9.488 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.2783/0.2783, allocations: 38.18 MB / 383.7 MB, free: 40.37 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002891/0.0002891, allocations: 8 kB / 453.6 MB, free: 8.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2665, allocations: 59.15 MB / 0.5007 GB, free: 39.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.00398/0.2705, allocations: 4.25 MB / 0.5048 GB, free: 38.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2719, allocations: 1.284 MB / 0.5061 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.2721, allocations: 20.47 kB / 0.5061 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.2723, allocations: 39.91 kB / 0.5062 GB, free: 37.85 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004049/0.2727, allocations: 156.1 kB / 0.5063 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.2729, allocations: 82.33 kB / 0.5064 GB, free: 37.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.2734, allocations: 0.5233 MB / 0.5069 GB, free: 37.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.2736, allocations: 102.8 kB / 0.507 GB, free: 37.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/0.2738, allocations: 147.6 kB / 0.5071 GB, free: 37.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002832/0.2741, allocations: 176.3 kB / 0.5073 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.111e-05/0.2741, allocations: 9.875 kB / 0.5073 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.2742, allocations: 11.03 kB / 0.5073 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.695e-05/0.2743, allocations: 77.64 kB / 0.5074 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.2744, allocations: 165.5 kB / 0.5076 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.2747, allocations: 272.8 kB / 0.5078 GB, free: 37.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2747, allocations: 0 / 0.5078 GB, free: 37.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2747, allocations: 0 / 0.5078 GB, free: 37.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2747, allocations: 0 / 0.5078 GB, free: 37.14 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007251/0.2754, allocations: 0.5406 MB / 0.5083 GB, free: 36.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.2755, allocations: 9.125 kB / 0.5083 GB, free: 36.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.2755, allocations: 31.78 kB / 0.5084 GB, free: 36.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.2759, allocations: 329.6 kB / 0.5087 GB, free: 36.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.2759, allocations: 20.47 kB / 0.5087 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.276, allocations: 21.28 kB / 0.5087 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000394/0.2764, allocations: 290.2 kB / 0.509 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.2764, allocations: 1.562 kB / 0.509 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.2764, allocations: 7.562 kB / 0.509 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.944e-06/0.2764, allocations: 9.5 kB / 0.509 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.2767, allocations: 181.1 kB / 0.5092 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2778, allocations: 1.231 MB / 0.5104 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.2781, allocations: 112.8 kB / 0.5105 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.813e-05/0.2782, allocations: 44.41 kB / 0.5106 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.2782, allocations: 1.094 kB / 0.5106 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.2783, allocations: 36.28 kB / 0.5106 GB, free: 34.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.2783, allocations: 4 kB / 0.5106 GB, free: 34.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006843/0.2789, allocations: 492.3 kB / 0.5111 GB, free: 34.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/0.279, allocations: 78.08 kB / 0.5111 GB, free: 34.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.2792, allocations: 243 kB / 0.5114 GB, free: 34.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.768e-06/0.2792, allocations: 32.2 kB / 0.5114 GB, free: 34.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.905e-05/0.2793, allocations: 205.6 kB / 0.5116 GB, free: 34.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.2793, allocations: 36.25 kB / 0.5116 GB, free: 34.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-06/0.2793, allocations: 6.562 kB / 0.5116 GB, free: 34.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.408e-05/0.2794, allocations: 335.6 kB / 0.512 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.915e-05/0.2795, allocations: 35.56 kB / 0.512 GB, free: 33.76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.805e-05/0.2796, allocations: 133.6 kB / 0.5121 GB, free: 33.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.2797, allocations: 188.3 kB / 0.5123 GB, free: 33.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2797, allocations: 3.156 kB / 0.5123 GB, free: 33.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002274/0.28, allocations: 205.4 kB / 0.5125 GB, free: 33.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.28, allocations: 9.562 kB / 0.5125 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.28, allocations: 3.312 kB / 0.5125 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.28, allocations: 5.844 kB / 0.5125 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.2802, allocations: 48.23 kB / 0.5126 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2802, allocations: 4.281 kB / 0.5126 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.2803, allocations: 12.12 kB / 0.5126 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.2803, allocations: 13.44 kB / 0.5126 GB, free: 33.32 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 (24): * Single equations (assignments): 24 * 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.0001064/0.2804, allocations: 155.2 kB / 0.5127 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.2805, allocations: 21.34 kB / 0.5128 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002109/0.2807, allocations: 134.9 kB / 0.5129 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.2807, allocations: 2.375 kB / 0.5129 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2807, allocations: 0 / 0.5129 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2807, allocations: 5 kB / 0.5129 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003984/0.2811, allocations: 475.9 kB / 0.5133 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2811, allocations: 2.938 kB / 0.5133 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.2813, allocations: 24.78 kB / 0.5134 GB, free: 32.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2813, allocations: 4 kB / 0.5134 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.2813, allocations: 14.72 kB / 0.5134 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2813, allocations: 2.875 kB / 0.5134 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2813, allocations: 0 / 0.5134 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.2815, allocations: 274.4 kB / 0.5137 GB, free: 32.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/0.2816, allocations: 101.8 kB / 0.5137 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.2816, allocations: 6.781 kB / 0.5138 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.33e-05/0.2817, allocations: 4.062 kB / 0.5138 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.995e-05/0.2817, allocations: 12.67 kB / 0.5138 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-06/0.2817, allocations: 2.719 kB / 0.5138 GB, free: 32.37 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.886e-05/0.2819, allocations: 167.8 kB / 0.5139 GB, free: 32.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2819, allocations: 3.062 kB / 0.5139 GB, free: 32.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002656/0.2821, allocations: 43.34 kB / 0.514 GB, free: 32.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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 7.514e-05/0.2822, allocations: 111.1 kB / 0.5141 GB, free: 32.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001741/0.2824, allocations: 116.2 kB / 0.5142 GB, free: 32.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2824, allocations: 192 / 0.5142 GB, free: 32.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.852e-05/0.2825, allocations: 42.52 kB / 0.5142 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.2829, allocations: 55.56 kB / 0.5143 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007217/0.2836, allocations: 0.69 MB / 0.515 GB, free: 31.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001638/0.2838, allocations: 0.7691 MB / 0.5157 GB, free: 30.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.2839, allocations: 32.69 kB / 0.5157 GB, free: 30.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.448e-05/0.284, allocations: 24.78 kB / 0.5158 GB, free: 30.91 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.284, allocations: 3.938 kB / 0.5158 GB, free: 30.91 MB / 378.7 MB Notification: Performance of Templates: time 0.004163/0.2882, allocations: 1.883 MB / 0.5176 GB, free: 30.74 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches