Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.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.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") translateModel(PowerSystems.Examples.AC3ph.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asynchron.i.1.|asynchron.i.2.|asynchron.i.3.|asynchron.v.1.|asynchron.v.2.|asynchron.v.3.|asynchron.w_el|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 110.7 kB / 17.06 MB, free: 6.004 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.001338/0.001338, allocations: 200 kB / 18 MB, free: 5.082 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1746/0.1746, allocations: 38.03 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 55.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.454/0.4553, allocations: 58.05 MB / 0.5041 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.007481/0.4628, allocations: 5.387 MB / 0.5094 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006728/0.4696, allocations: 4.153 MB / 0.5134 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006418/0.4703, allocations: 19.94 kB / 0.5134 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0137/0.484, allocations: 4.853 MB / 0.5182 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001965/0.486, allocations: 344.1 kB / 0.5185 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.4873, allocations: 244.1 kB / 0.5187 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003931/0.4913, allocations: 1.571 MB / 0.5203 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.4923, allocations: 383.6 kB / 0.5206 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.4934, allocations: 383.7 kB / 0.521 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.4944, allocations: 444.2 kB / 0.5214 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.4946, allocations: 45.38 kB / 0.5215 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004418/0.495, allocations: 121.5 kB / 0.5216 GB, free: 14.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004378/0.4955, allocations: 266.9 kB / 0.5218 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005098/0.496, allocations: 332 kB / 0.5222 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00155/0.4976, allocations: 0.7428 MB / 0.5229 GB, free: 13.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4976, allocations: 1.312 kB / 0.5229 GB, free: 13.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4976, allocations: 4 kB / 0.5229 GB, free: 13.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.4976, allocations: 0 / 0.5229 GB, free: 13.79 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.002574/0.5002, allocations: 0.9071 MB / 0.5238 GB, free: 13.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.5003, allocations: 17.08 kB / 0.5238 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006995/0.501, allocations: 96.64 kB / 0.5239 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001653/0.5027, allocations: 0.5529 MB / 0.5244 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.975e-05/0.5028, allocations: 38.95 kB / 0.5245 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.5029, allocations: 49 kB / 0.5245 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.5044, allocations: 0.6504 MB / 0.5251 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.5044, allocations: 1.875 kB / 0.5251 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.896e-05/0.5045, allocations: 16.94 kB / 0.5252 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001976/0.5047, allocations: 48.75 kB / 0.5252 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.506, allocations: 495.2 kB / 0.5257 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005187/0.5112, allocations: 2.53 MB / 0.5281 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006939/0.5119, allocations: 310 kB / 0.5284 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004273/0.5123, allocations: 188.4 kB / 0.5286 GB, free: 9.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.191e-05/0.5124, allocations: 7.781 kB / 0.5286 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.665e-05/0.5125, allocations: 33.09 kB / 0.5287 GB, free: 9.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.935e-06/0.5125, allocations: 1.281 kB / 0.5287 GB, free: 9.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003971/0.5165, allocations: 1.629 MB / 0.5303 GB, free: 8.648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/0.5166, allocations: 114.7 kB / 0.5304 GB, free: 8.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007989/0.5174, allocations: 427.4 kB / 0.5308 GB, free: 8.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.5175, allocations: 30.86 kB / 0.5308 GB, free: 8.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004011/0.5179, allocations: 309 kB / 0.5311 GB, free: 7.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.5181, allocations: 117.7 kB / 0.5312 GB, free: 7.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.5184, allocations: 94.08 kB / 0.5313 GB, free: 7.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002715/0.5186, allocations: 366.6 kB / 0.5316 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004574/0.5191, allocations: 161.5 kB / 0.5318 GB, free: 7.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006217/0.5197, allocations: 306.1 kB / 0.5321 GB, free: 7.094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.5209, allocations: 489.5 kB / 0.5326 GB, free: 6.746 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.5209, allocations: 1.5 kB / 0.5326 GB, free: 6.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.002243/0.5232, allocations: 0.7999 MB / 0.5333 GB, free: 6.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.5232, allocations: 6.781 kB / 0.5333 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.5233, allocations: 5.719 kB / 0.5334 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007757/0.524, allocations: 210.1 kB / 0.5336 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.5244, allocations: 71.11 kB / 0.5336 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/0.5299, allocations: 4.238 MB / 0.5378 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.5304, allocations: 19.66 kB / 0.5378 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.122e-05/0.5305, allocations: 23.64 kB / 0.5378 GB, free: 2.422 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004778/0.531, allocations: 223.2 kB / 0.538 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.5311, allocations: 44.97 kB / 0.5381 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.5323, allocations: 0.6393 MB / 0.5387 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.5323, allocations: 5.062 kB / 0.5387 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5323, allocations: 1.375 kB / 0.5387 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.5323, allocations: 5.047 kB / 0.5387 GB, free: 1.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.5343, allocations: 1.185 MB / 0.5398 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.5344, allocations: 1.438 kB / 0.5399 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004525/0.5348, allocations: 77.44 kB / 0.5399 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001677/0.535, allocations: 53.53 kB / 0.54 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.535, allocations: 12.98 kB / 0.54 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002348/0.5374, allocations: 2.84 MB / 0.5428 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5374, allocations: 5.094 kB / 0.5428 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.5388, allocations: 0.9523 MB / 0.5437 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/0.5391, allocations: 158.5 kB / 0.5438 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.457e-05/0.5392, allocations: 8.125 kB / 0.5439 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.5394, allocations: 20.05 kB / 0.5439 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.097e-05/0.5395, allocations: 24.33 kB / 0.5439 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.5395, allocations: 13.62 kB / 0.5439 GB, free: 12.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003934/0.5399, allocations: 290.8 kB / 0.5442 GB, free: 12.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5399, allocations: 0 / 0.5442 GB, free: 12.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007715/0.5407, allocations: 134.2 kB / 0.5443 GB, free: 12.72 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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 0.0001656/0.5409, allocations: 112.7 kB / 0.5444 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.5423, allocations: 0.745 MB / 0.5452 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5423, allocations: 0 / 0.5452 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005955/0.5429, allocations: 417.5 kB / 0.5455 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000768/0.5437, allocations: 121 kB / 0.5457 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.5464, allocations: 1.468 MB / 0.5471 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008513/0.5473, allocations: 0.9512 MB / 0.548 GB, free: 9.922 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005109/0.5478, allocations: 103.8 kB / 0.5481 GB, free: 9.871 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.548, allocations: 34.72 kB / 0.5482 GB, free: 9.863 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.548, allocations: 4 kB / 0.5482 GB, free: 9.859 MB / 414.1 MB Notification: Performance of Templates: time 0.02042/0.5684, allocations: 7.071 MB / 0.5551 GB, free: 2.914 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches