Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 115.8 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 189.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.182/0.182, allocations: 38.05 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 55.91 kB / 458.8 MB, free: 6.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3667, allocations: 58.06 MB / 0.5047 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.005121/0.3719, allocations: 4.419 MB / 0.5091 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.374, allocations: 1.419 MB / 0.5105 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001794/0.3742, allocations: 13 kB / 0.5105 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009784/0.3752, allocations: 389.9 kB / 0.5108 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004583/0.3756, allocations: 222.1 kB / 0.511 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.3763, allocations: 244.6 kB / 0.5113 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005585/0.3769, allocations: 0.529 MB / 0.5118 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004437/0.3773, allocations: 277 kB / 0.5121 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003376/0.3777, allocations: 255.1 kB / 0.5123 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000461/0.3782, allocations: 290.8 kB / 0.5126 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-05/0.3782, allocations: 32.56 kB / 0.5126 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003069/0.3786, allocations: 146.2 kB / 0.5128 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.3788, allocations: 221.4 kB / 0.513 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.379, allocations: 240.8 kB / 0.5132 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006938/0.3797, allocations: 0.5568 MB / 0.5137 GB, free: 2.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3797, allocations: 5.156 kB / 0.5137 GB, free: 2.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3798, allocations: 0 / 0.5137 GB, free: 2.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.3798, allocations: 0 / 0.5137 GB, free: 2.215 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001204/0.381, allocations: 0.7369 MB / 0.5145 GB, free: 1.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.381, allocations: 14.33 kB / 0.5145 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005474/0.3816, allocations: 80.83 kB / 0.5146 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006867/0.3823, allocations: 410.7 kB / 0.5149 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.3823, allocations: 38.97 kB / 0.515 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.3825, allocations: 47.59 kB / 0.515 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008385/0.3833, allocations: 0.6201 MB / 0.5156 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.3833, allocations: 5.609 kB / 0.5156 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.3834, allocations: 17.55 kB / 0.5157 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.3835, allocations: 33.66 kB / 0.5157 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007636/0.3843, allocations: 480.3 kB / 0.5161 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003465/0.3878, allocations: 2.886 MB / 0.519 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004074/0.3882, allocations: 236 kB / 0.5192 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.3884, allocations: 141.2 kB / 0.5193 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.3884, allocations: 9.094 kB / 0.5193 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.3885, allocations: 33.41 kB / 0.5194 GB, free: 14.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.384e-06/0.3885, allocations: 4 kB / 0.5194 GB, free: 14.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001605/0.3901, allocations: 0.9615 MB / 0.5203 GB, free: 13.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.3902, allocations: 81.25 kB / 0.5204 GB, free: 13.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.3905, allocations: 326.2 kB / 0.5207 GB, free: 13.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.3905, allocations: 30.67 kB / 0.5207 GB, free: 13.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.3907, allocations: 277 kB / 0.521 GB, free: 13.15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.725e-05/0.3908, allocations: 106.3 kB / 0.5211 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.391, allocations: 92.67 kB / 0.5212 GB, free: 13.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.3911, allocations: 346.8 kB / 0.5215 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.3914, allocations: 144.4 kB / 0.5216 GB, free: 12.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.3917, allocations: 358 kB / 0.522 GB, free: 12.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006222/0.3924, allocations: 0.5184 MB / 0.5225 GB, free: 11.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3924, allocations: 2.188 kB / 0.5225 GB, free: 11.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007597/0.3931, allocations: 0.5256 MB / 0.523 GB, free: 11.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3932, allocations: 8.062 kB / 0.523 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.3932, allocations: 11 kB / 0.523 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.3932, allocations: 9.75 kB / 0.523 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.3936, allocations: 123.3 kB / 0.5232 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.3937, allocations: 10.89 kB / 0.5232 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.3939, allocations: 25.39 kB / 0.5232 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/0.3939, allocations: 24.66 kB / 0.5232 GB, free: 11.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0002321/0.3942, allocations: 225.1 kB / 0.5234 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.301e-05/0.3942, allocations: 34.73 kB / 0.5235 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006089/0.3949, allocations: 357.1 kB / 0.5238 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.3949, allocations: 4.188 kB / 0.5238 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3949, allocations: 1.125 kB / 0.5238 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3949, allocations: 1.875 kB / 0.5238 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.3964, allocations: 0.8886 MB / 0.5247 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3964, allocations: 5.312 kB / 0.5247 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.3967, allocations: 67.47 kB / 0.5247 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3968, allocations: 2.75 kB / 0.5247 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.3968, allocations: 9.531 kB / 0.5248 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.3968, allocations: 7.344 kB / 0.5248 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3968, allocations: 1.375 kB / 0.5248 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000794/0.3976, allocations: 0.5866 MB / 0.5253 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.729e-05/0.3977, allocations: 104.7 kB / 0.5254 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.892e-05/0.3978, allocations: 7.734 kB / 0.5254 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.3979, allocations: 14.59 kB / 0.5255 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.398, allocations: 25.14 kB / 0.5255 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.398, allocations: 7.703 kB / 0.5255 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002329/0.3983, allocations: 220.2 kB / 0.5257 GB, free: 10.24 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3983, allocations: 0 / 0.5257 GB, free: 10.24 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004838/0.3988, allocations: 92.88 kB / 0.5258 GB, free: 10.23 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.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 (31): * Single equations (assignments): 30 * 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 0.0001308/0.3989, allocations: 108.4 kB / 0.5259 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005951/0.3995, allocations: 370.5 kB / 0.5262 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3995, allocations: 0 / 0.5262 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.3998, allocations: 151.4 kB / 0.5264 GB, free: 9.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000518/0.4003, allocations: 73.89 kB / 0.5265 GB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.4019, allocations: 1.039 MB / 0.5275 GB, free: 9.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004801/0.4024, allocations: 0.8583 MB / 0.5283 GB, free: 8.598 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.4025, allocations: 38.86 kB / 0.5283 GB, free: 8.586 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4025, allocations: 1.125 kB / 0.5284 GB, free: 8.586 MB / 398.1 MB Notification: Performance of Templates: time 0.008016/0.4106, allocations: 4.971 MB / 0.5332 GB, free: 6.879 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches