Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009579/0.0009579, allocations: 180 kB / 16.71 MB, free: 5.09 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.52 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.0007407/0.0007409, allocations: 83.14 kB / 294.4 MB, free: 9.539 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.2739/0.2739, allocations: 38.17 MB / 383.7 MB, free: 40.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.000276, allocations: 15.98 kB / 453.6 MB, free: 8.809 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2679, allocations: 59.15 MB / 0.5007 GB, free: 38.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.004501/0.2724, allocations: 4.497 MB / 0.5051 GB, free: 38.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001606/0.2741, allocations: 1.305 MB / 0.5064 GB, free: 37.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.2743, allocations: 25.66 kB / 0.5064 GB, free: 37.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.2744, allocations: 41.41 kB / 0.5064 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004846/0.2749, allocations: 229.1 kB / 0.5066 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.2751, allocations: 86.66 kB / 0.5067 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007171/0.2759, allocations: 0.8074 MB / 0.5075 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.2761, allocations: 118.6 kB / 0.5076 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.2764, allocations: 184.6 kB / 0.5078 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003941/0.2768, allocations: 273.8 kB / 0.5081 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.627e-05/0.2768, allocations: 12.56 kB / 0.5081 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.229e-05/0.2769, allocations: 13.53 kB / 0.5081 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.277, allocations: 130.7 kB / 0.5082 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.2772, allocations: 187.9 kB / 0.5084 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003226/0.2775, allocations: 349.4 kB / 0.5087 GB, free: 36.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2775, allocations: 0 / 0.5087 GB, free: 36.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2775, allocations: 0 / 0.5087 GB, free: 36.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.2776, allocations: 0.8438 kB / 0.5087 GB, free: 36.6 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008297/0.2784, allocations: 0.5941 MB / 0.5093 GB, free: 36.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2784, allocations: 10.17 kB / 0.5093 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.594e-05/0.2785, allocations: 40 kB / 0.5094 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.2789, allocations: 364.9 kB / 0.5097 GB, free: 35.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.279, allocations: 23.84 kB / 0.5097 GB, free: 35.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.279, allocations: 29.28 kB / 0.5098 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000481/0.2795, allocations: 354.8 kB / 0.5101 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2795, allocations: 5.734 kB / 0.5101 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/0.2796, allocations: 11.16 kB / 0.5101 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001047/0.2797, allocations: 25.94 kB / 0.5101 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003773/0.2801, allocations: 241 kB / 0.5104 GB, free: 35.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.2813, allocations: 1.373 MB / 0.5117 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.2816, allocations: 165.6 kB / 0.5119 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.2818, allocations: 97.31 kB / 0.512 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.2818, allocations: 6.469 kB / 0.512 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.2818, allocations: 37.47 kB / 0.512 GB, free: 34.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.2818, allocations: 0 / 0.512 GB, free: 34.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.001036/0.2829, allocations: 0.7682 MB / 0.5127 GB, free: 33.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/0.2829, allocations: 83.2 kB / 0.5128 GB, free: 33.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.2831, allocations: 290.1 kB / 0.5131 GB, free: 33.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.2832, allocations: 32.55 kB / 0.5131 GB, free: 33.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.802e-05/0.2833, allocations: 213.3 kB / 0.5133 GB, free: 33.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.212e-05/0.2833, allocations: 57.12 kB / 0.5134 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-06/0.2833, allocations: 4 kB / 0.5134 GB, free: 33.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.339e-05/0.2834, allocations: 338.3 kB / 0.5137 GB, free: 32.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.833e-05/0.2835, allocations: 67.94 kB / 0.5138 GB, free: 32.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.2836, allocations: 167.6 kB / 0.5139 GB, free: 32.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.2838, allocations: 245.3 kB / 0.5142 GB, free: 32.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2838, allocations: 0 / 0.5142 GB, free: 32.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000384/0.2842, allocations: 322.9 kB / 0.5145 GB, free: 32.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2842, allocations: 5.719 kB / 0.5145 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2842, allocations: 5.812 kB / 0.5145 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.2844, allocations: 57.34 kB / 0.5145 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.2846, allocations: 47.84 kB / 0.5146 GB, free: 32.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008437/0.2855, allocations: 1.492 MB / 0.5161 GB, free: 31.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.2856, allocations: 14.06 kB / 0.5161 GB, free: 31.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.2857, allocations: 11.78 kB / 0.5161 GB, free: 31 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001327/0.2858, allocations: 176 kB / 0.5162 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.2858, allocations: 22.44 kB / 0.5163 GB, free: 30.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003353/0.2862, allocations: 239.3 kB / 0.5165 GB, free: 30.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2862, allocations: 5.594 kB / 0.5165 GB, free: 30.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2862, allocations: 6.969 kB / 0.5165 GB, free: 30.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2862, allocations: 4 kB / 0.5165 GB, free: 30.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006474/0.2869, allocations: 0.6358 MB / 0.5171 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2869, allocations: 6.969 kB / 0.5171 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.693e-05/0.287, allocations: 21.88 kB / 0.5172 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/0.2871, allocations: 55.59 kB / 0.5172 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.2872, allocations: 6.219 kB / 0.5172 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008667/0.288, allocations: 1.492 MB / 0.5187 GB, free: 28.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2881, allocations: 5.5 kB / 0.5187 GB, free: 28.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004251/0.2885, allocations: 400.8 kB / 0.5191 GB, free: 28.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.786e-05/0.2885, allocations: 101.5 kB / 0.5192 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.445e-05/0.2886, allocations: 9.375 kB / 0.5192 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.2887, allocations: 3.156 kB / 0.5192 GB, free: 28.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.2888, allocations: 23.94 kB / 0.5192 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.2888, allocations: 4.719 kB / 0.5192 GB, free: 28.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001539/0.289, allocations: 204.8 kB / 0.5194 GB, free: 28.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.289, allocations: 0 / 0.5194 GB, free: 28.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003399/0.2893, allocations: 74.22 kB / 0.5195 GB, free: 28.42 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.486e-05/0.2894, allocations: 110.3 kB / 0.5196 GB, free: 28.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004171/0.2898, allocations: 297.8 kB / 0.5199 GB, free: 28.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2898, allocations: 0 / 0.5199 GB, free: 28.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002701/0.2901, allocations: 207.7 kB / 0.5201 GB, free: 28.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.2906, allocations: 62.45 kB / 0.5201 GB, free: 27.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009165/0.2915, allocations: 0.9112 MB / 0.521 GB, free: 27.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.2917, allocations: 0.8027 MB / 0.5218 GB, free: 26.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.2919, allocations: 40.8 kB / 0.5218 GB, free: 26.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.788e-05/0.2919, allocations: 26.98 kB / 0.5218 GB, free: 26.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2919, allocations: 0 / 0.5218 GB, free: 26.68 MB / 378.7 MB Notification: Performance of Templates: time 0.005422/0.2974, allocations: 2.796 MB / 0.5246 GB, free: 26.45 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches