Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.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.Generic.Test.InductiveLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest") translateModel(PowerSystems.Examples.Generic.Test.InductiveLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|load.i.1.|load.i.2.|load.p.1.|load.p.2.|load.v.1.|load.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 183.2 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.192/1.192, allocations: 225.7 MB / 243.2 MB, free: 10.23 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.000796/0.0007961, allocations: 93.86 kB / 294.4 MB, free: 9.738 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.2702/0.2702, allocations: 38.18 MB / 383.7 MB, free: 40.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002971/0.0002972, allocations: 8 kB / 453.5 MB, free: 8.844 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2713, allocations: 59.16 MB / 0.5007 GB, free: 39 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.InductiveLoadTest): time 0.004083/0.2755, allocations: 3.747 MB / 0.5043 GB, free: 38.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.2782, allocations: 3.469 MB / 0.5077 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003369/0.2786, allocations: 11.59 kB / 0.5077 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.2788, allocations: 43.84 kB / 0.5078 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001/0.2798, allocations: 386.2 kB / 0.5082 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003835/0.2802, allocations: 126 kB / 0.5083 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009764/0.2812, allocations: 0.8427 MB / 0.5091 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008065/0.282, allocations: 0.6474 MB / 0.5097 GB, free: 34.83 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003911/0.2824, allocations: 175.7 kB / 0.5099 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003755/0.2828, allocations: 223.2 kB / 0.5101 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.2828, allocations: 10.94 kB / 0.5101 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008512/0.2837, allocations: 0.5083 MB / 0.5106 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.2839, allocations: 142.9 kB / 0.5108 GB, free: 34.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.2841, allocations: 169.2 kB / 0.5109 GB, free: 34.35 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007733/0.2849, allocations: 0.5037 MB / 0.5114 GB, free: 34.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2849, allocations: 1.5 kB / 0.5114 GB, free: 34.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2849, allocations: 0.875 kB / 0.5114 GB, free: 34.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.2849, allocations: 0 / 0.5114 GB, free: 34.2 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0007196/0.2856, allocations: 0.545 MB / 0.5119 GB, free: 33.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2857, allocations: 9.75 kB / 0.5119 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/0.2868, allocations: 136 kB / 0.5121 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.2872, allocations: 287.2 kB / 0.5124 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.2872, allocations: 17.14 kB / 0.5124 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/0.2873, allocations: 29.66 kB / 0.5124 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005537/0.2878, allocations: 440.5 kB / 0.5128 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.2878, allocations: 5.156 kB / 0.5128 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/0.2879, allocations: 10.97 kB / 0.5128 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.413e-05/0.2879, allocations: 21.06 kB / 0.5129 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005714/0.2885, allocations: 428.8 kB / 0.5133 GB, free: 33.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.2902, allocations: 1.732 MB / 0.515 GB, free: 31.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.2905, allocations: 285.8 kB / 0.5152 GB, free: 31.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.2906, allocations: 138.5 kB / 0.5154 GB, free: 31.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.2907, allocations: 7.438 kB / 0.5154 GB, free: 31.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.2907, allocations: 35.2 kB / 0.5154 GB, free: 31.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.833e-06/0.2907, allocations: 0 / 0.5154 GB, free: 31.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001537/0.2922, allocations: 0.7957 MB / 0.5162 GB, free: 31.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.2923, allocations: 79.92 kB / 0.5163 GB, free: 31.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.2924, allocations: 210.3 kB / 0.5165 GB, free: 30.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.2925, allocations: 29.7 kB / 0.5165 GB, free: 30.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.689e-05/0.2925, allocations: 185.2 kB / 0.5167 GB, free: 30.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.411e-05/0.2926, allocations: 81.28 kB / 0.5167 GB, free: 30.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.2926, allocations: 4 kB / 0.5167 GB, free: 30.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.809e-05/0.2926, allocations: 335.7 kB / 0.5171 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.2928, allocations: 106.9 kB / 0.5172 GB, free: 30.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.2929, allocations: 194.5 kB / 0.5173 GB, free: 30.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.2933, allocations: 345.1 kB / 0.5177 GB, free: 29.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2933, allocations: 0 / 0.5177 GB, free: 29.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000601/0.2939, allocations: 434.9 kB / 0.5181 GB, free: 29.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.2939, allocations: 6.094 kB / 0.5181 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.2939, allocations: 2.969 kB / 0.5181 GB, free: 29.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003466/0.2943, allocations: 86.84 kB / 0.5182 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.2945, allocations: 59.2 kB / 0.5182 GB, free: 29.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.2959, allocations: 1.791 MB / 0.52 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.2961, allocations: 17.3 kB / 0.52 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.2962, allocations: 10.91 kB / 0.52 GB, free: 28.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (29): * Single equations (assignments): 28 * 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 {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.2963, allocations: 178.5 kB / 0.5202 GB, free: 28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.2964, allocations: 22.62 kB / 0.5202 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006397/0.297, allocations: 389.1 kB / 0.5206 GB, free: 27.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.297, allocations: 3.188 kB / 0.5206 GB, free: 27.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.297, allocations: 4.969 kB / 0.5206 GB, free: 27.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.297, allocations: 1.094 kB / 0.5206 GB, free: 27.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.2983, allocations: 0.9118 MB / 0.5215 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2983, allocations: 4.062 kB / 0.5215 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.2984, allocations: 39.38 kB / 0.5215 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002403/0.2987, allocations: 68.98 kB / 0.5216 GB, free: 27.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.2987, allocations: 11.61 kB / 0.5216 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/0.3, allocations: 1.709 MB / 0.5233 GB, free: 25.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3, allocations: 4.062 kB / 0.5233 GB, free: 25.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005538/0.3006, allocations: 457.3 kB / 0.5237 GB, free: 25.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.947e-05/0.3006, allocations: 108.5 kB / 0.5238 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.3007, allocations: 4 kB / 0.5238 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.3008, allocations: 12.95 kB / 0.5238 GB, free: 25.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.3009, allocations: 18.84 kB / 0.5238 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3009, allocations: 9.938 kB / 0.5238 GB, free: 25.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001042/0.301, allocations: 146.7 kB / 0.524 GB, free: 25.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.301, allocations: 0 / 0.524 GB, free: 25.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004871/0.3015, allocations: 83.09 kB / 0.5241 GB, free: 25.19 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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 {(2,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.0001089/0.3016, allocations: 112 kB / 0.5242 GB, free: 25.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006648/0.3023, allocations: 441 kB / 0.5246 GB, free: 24.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3023, allocations: 4.062 kB / 0.5246 GB, free: 24.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003449/0.3027, allocations: 282.6 kB / 0.5249 GB, free: 24.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.3031, allocations: 44.11 kB / 0.5249 GB, free: 24.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008664/0.304, allocations: 0.7471 MB / 0.5256 GB, free: 24.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.3042, allocations: 0.7952 MB / 0.5264 GB, free: 23.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.3043, allocations: 58.58 kB / 0.5265 GB, free: 23.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.047e-05/0.3044, allocations: 23.03 kB / 0.5265 GB, free: 23.49 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3044, allocations: 0 / 0.5265 GB, free: 23.49 MB / 378.7 MB Notification: Performance of Templates: time 0.00519/0.3096, allocations: 2.784 MB / 0.5292 GB, free: 23.28 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.InductiveLoadTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.InductiveLoadTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches