Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008656/0.0008657, allocations: 183.7 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.18/1.18, allocations: 225.7 MB / 243.2 MB, free: 8.48 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.0007276/0.0007277, allocations: 93.75 kB / 294.4 MB, free: 9.508 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.2687/0.2687, allocations: 38.18 MB / 383.7 MB, free: 40.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002736, allocations: 8 kB / 453.6 MB, free: 8.781 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2636, allocations: 59.15 MB / 0.5007 GB, free: 38.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005306/0.269, allocations: 5.944 MB / 0.5065 GB, free: 37.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.2711, allocations: 2.084 MB / 0.5085 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002747/0.2714, allocations: 39.22 kB / 0.5086 GB, free: 35.85 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000363/0.2718, allocations: 121.7 kB / 0.5087 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000616/0.2724, allocations: 343.9 kB / 0.509 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.2727, allocations: 134.1 kB / 0.5091 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009124/0.2736, allocations: 1.154 MB / 0.5103 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.2739, allocations: 180.8 kB / 0.5104 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003482/0.2742, allocations: 295.8 kB / 0.5107 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004523/0.2747, allocations: 410 kB / 0.5111 GB, free: 34.85 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.711e-05/0.2747, allocations: 20.75 kB / 0.5111 GB, free: 34.85 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.029e-05/0.2748, allocations: 20.28 kB / 0.5111 GB, free: 34.85 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.275, allocations: 179.1 kB / 0.5113 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002096/0.2752, allocations: 278.7 kB / 0.5116 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004054/0.2756, allocations: 0.5446 MB / 0.5121 GB, free: 34.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2756, allocations: 0 / 0.5121 GB, free: 34.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2756, allocations: 0 / 0.5121 GB, free: 34.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.2756, allocations: 0 / 0.5121 GB, free: 34.44 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0009619/0.2766, allocations: 0.7989 MB / 0.5129 GB, free: 33.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.835e-05/0.2766, allocations: 9.844 kB / 0.5129 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.541e-05/0.2767, allocations: 61.72 kB / 0.513 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005306/0.2773, allocations: 483.2 kB / 0.5134 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.2773, allocations: 35.03 kB / 0.5135 GB, free: 33.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.666e-05/0.2773, allocations: 42.97 kB / 0.5135 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006008/0.278, allocations: 0.5353 MB / 0.514 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.278, allocations: 7.406 kB / 0.514 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.278, allocations: 17.81 kB / 0.514 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.278, allocations: 15.62 kB / 0.5141 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004761/0.2785, allocations: 393.9 kB / 0.5144 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001638/0.2802, allocations: 1.939 MB / 0.5163 GB, free: 31.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.2806, allocations: 330.8 kB / 0.5166 GB, free: 31.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.2809, allocations: 187.3 kB / 0.5168 GB, free: 31.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.281, allocations: 19.67 kB / 0.5168 GB, free: 31.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002854/0.2812, allocations: 272.8 kB / 0.5171 GB, free: 31.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 1.442e-06/0.2813, allocations: 1.531 kB / 0.5171 GB, free: 31.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001416/0.2827, allocations: 1.174 MB / 0.5183 GB, free: 30.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.2827, allocations: 166.3 kB / 0.5184 GB, free: 30.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003032/0.283, allocations: 393.4 kB / 0.5188 GB, free: 30.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2831, allocations: 32.64 kB / 0.5188 GB, free: 30.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.2832, allocations: 297.1 kB / 0.5191 GB, free: 29.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.717e-05/0.2833, allocations: 116.1 kB / 0.5192 GB, free: 29.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/0.2833, allocations: 11.12 kB / 0.5192 GB, free: 29.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.119e-05/0.2834, allocations: 363 kB / 0.5196 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.2835, allocations: 115.3 kB / 0.5197 GB, free: 29.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.2838, allocations: 286.6 kB / 0.52 GB, free: 29.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000386/0.2842, allocations: 483.4 kB / 0.5204 GB, free: 28.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2842, allocations: 0 / 0.5204 GB, free: 28.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005615/0.2847, allocations: 0.5134 MB / 0.5209 GB, free: 28.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.2848, allocations: 41.84 kB / 0.521 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2848, allocations: 5.906 kB / 0.521 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.2848, allocations: 8.969 kB / 0.521 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/0.2852, allocations: 105 kB / 0.5211 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.2852, allocations: 20.06 kB / 0.5211 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.2854, allocations: 24.16 kB / 0.5211 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.2855, allocations: 30.28 kB / 0.5211 GB, free: 28.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0001695/0.2856, allocations: 249.6 kB / 0.5214 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.2857, allocations: 49.84 kB / 0.5214 GB, free: 28.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005108/0.2862, allocations: 451.2 kB / 0.5219 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2862, allocations: 12.97 kB / 0.5219 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.2862, allocations: 4 kB / 0.5219 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2862, allocations: 0 / 0.5219 GB, free: 27.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008804/0.2871, allocations: 0.9707 MB / 0.5228 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2871, allocations: 2.781 kB / 0.5228 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002825/0.2874, allocations: 62.12 kB / 0.5229 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2874, allocations: 2.969 kB / 0.5229 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.2875, allocations: 11.06 kB / 0.5229 GB, free: 27.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2875, allocations: 6.969 kB / 0.5229 GB, free: 27.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2875, allocations: 0 / 0.5229 GB, free: 27.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006575/0.2881, allocations: 0.7084 MB / 0.5236 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.852e-05/0.2882, allocations: 145.7 kB / 0.5237 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.177e-05/0.2883, allocations: 6.875 kB / 0.5237 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.2885, allocations: 22.78 kB / 0.5238 GB, free: 26.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.2886, allocations: 22.61 kB / 0.5238 GB, free: 26.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.2886, allocations: 28.61 kB / 0.5238 GB, free: 26.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001819/0.2888, allocations: 270.8 kB / 0.5241 GB, free: 26.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2888, allocations: 0 / 0.5241 GB, free: 26.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003448/0.2892, allocations: 108.3 kB / 0.5242 GB, free: 26.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.238e-05/0.2893, allocations: 110.4 kB / 0.5243 GB, free: 26.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004297/0.2897, allocations: 420.1 kB / 0.5247 GB, free: 26.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2897, allocations: 0 / 0.5247 GB, free: 26.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002182/0.2899, allocations: 259.7 kB / 0.5249 GB, free: 26.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.2905, allocations: 91.53 kB / 0.525 GB, free: 26.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.2916, allocations: 1.228 MB / 0.5262 GB, free: 25.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.2918, allocations: 0.8907 MB / 0.5271 GB, free: 24.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002566/0.2921, allocations: 84.53 kB / 0.5272 GB, free: 24.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/0.2922, allocations: 38.47 kB / 0.5272 GB, free: 24.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.91e-07/0.2922, allocations: 0 / 0.5272 GB, free: 24.77 MB / 378.7 MB Notification: Performance of Templates: time 0.006414/0.2986, allocations: 3.906 MB / 0.531 GB, free: 24.44 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches