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.001432/0.001432, allocations: 108.2 kB / 17.74 MB, free: 5.359 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.001786/0.001786, allocations: 183.1 kB / 18.67 MB, free: 4.441 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.366/1.366, allocations: 222.9 MB / 242.4 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.175/0.175, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.91 kB / 458.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3567, allocations: 58.06 MB / 0.5048 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.006167/0.3629, allocations: 5.39 MB / 0.51 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005648/0.3686, allocations: 4.154 MB / 0.5141 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004977/0.3692, allocations: 22.78 kB / 0.5141 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01176/0.381, allocations: 4.848 MB / 0.5188 GB, free: 15.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.3822, allocations: 336.6 kB / 0.5192 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008377/0.383, allocations: 245.1 kB / 0.5194 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002565/0.3856, allocations: 1.567 MB / 0.5209 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006277/0.3863, allocations: 390.7 kB / 0.5213 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00058/0.3869, allocations: 375.1 kB / 0.5217 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006514/0.3875, allocations: 445.9 kB / 0.5221 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.492e-05/0.3876, allocations: 49.44 kB / 0.5221 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003099/0.3879, allocations: 121.1 kB / 0.5222 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003242/0.3883, allocations: 274.8 kB / 0.5225 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000332/0.3886, allocations: 325.2 kB / 0.5228 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.3896, allocations: 0.7427 MB / 0.5235 GB, free: 14.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3896, allocations: 0 / 0.5235 GB, free: 14.03 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3896, allocations: 0 / 0.5235 GB, free: 14.03 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.3897, allocations: 0 / 0.5235 GB, free: 14.03 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.001719/0.3914, allocations: 0.9145 MB / 0.5244 GB, free: 13.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3914, allocations: 18.14 kB / 0.5244 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004925/0.3919, allocations: 97.03 kB / 0.5245 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.393, allocations: 0.5475 MB / 0.5251 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.3931, allocations: 36.23 kB / 0.5251 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.92e-05/0.3932, allocations: 56.03 kB / 0.5252 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.3943, allocations: 0.6442 MB / 0.5258 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.3943, allocations: 4.938 kB / 0.5258 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.671e-05/0.3943, allocations: 25.58 kB / 0.5258 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/0.3945, allocations: 47.72 kB / 0.5259 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008323/0.3953, allocations: 491.7 kB / 0.5263 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003373/0.3987, allocations: 2.526 MB / 0.5288 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004617/0.3992, allocations: 317.5 kB / 0.5291 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002607/0.3995, allocations: 183.4 kB / 0.5293 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.3995, allocations: 7.25 kB / 0.5293 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.3995, allocations: 41.09 kB / 0.5293 GB, free: 10.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.973e-06/0.3996, allocations: 1.031 kB / 0.5293 GB, free: 10.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00262/0.4022, allocations: 1.626 MB / 0.5309 GB, free: 8.891 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.4023, allocations: 110.3 kB / 0.531 GB, free: 8.762 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005087/0.4028, allocations: 426.6 kB / 0.5314 GB, free: 8.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.4028, allocations: 35.98 kB / 0.5315 GB, free: 8.461 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.403, allocations: 305.2 kB / 0.5318 GB, free: 8.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.4031, allocations: 128.6 kB / 0.5319 GB, free: 8.078 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.4033, allocations: 85.88 kB / 0.532 GB, free: 8.023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.4034, allocations: 367.1 kB / 0.5323 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/0.4037, allocations: 161.3 kB / 0.5325 GB, free: 7.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.404, allocations: 301.8 kB / 0.5328 GB, free: 7.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006465/0.4047, allocations: 489.7 kB / 0.5332 GB, free: 6.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4047, allocations: 1.094 kB / 0.5332 GB, free: 6.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001347/0.4061, allocations: 0.7967 MB / 0.534 GB, free: 6.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.4061, allocations: 11.12 kB / 0.534 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.4061, allocations: 4.281 kB / 0.534 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006376/0.4067, allocations: 206.3 kB / 0.5342 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.4071, allocations: 79.14 kB / 0.5343 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004895/0.412, allocations: 4.229 MB / 0.5384 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004165/0.4124, allocations: 24.64 kB / 0.5384 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.077e-05/0.4125, allocations: 15.38 kB / 0.5385 GB, free: 2.676 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.00041/0.4129, allocations: 234.4 kB / 0.5387 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.4131, allocations: 45.69 kB / 0.5387 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/0.4141, allocations: 0.6313 MB / 0.5393 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.4141, allocations: 8.406 kB / 0.5393 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.4141, allocations: 2.094 kB / 0.5393 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4142, allocations: 5.016 kB / 0.5394 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.4161, allocations: 1.197 MB / 0.5405 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4161, allocations: 1.25 kB / 0.5405 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.4166, allocations: 74.2 kB / 0.5406 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001584/0.4167, allocations: 49.11 kB / 0.5406 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/0.4168, allocations: 12.47 kB / 0.5407 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002059/0.4188, allocations: 2.849 MB / 0.5434 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.4189, allocations: 1.125 kB / 0.5434 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.42, allocations: 0.9481 MB / 0.5444 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.4203, allocations: 153.1 kB / 0.5445 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.424e-05/0.4204, allocations: 9.5 kB / 0.5445 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.4207, allocations: 12.11 kB / 0.5445 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.574e-05/0.4207, allocations: 32.33 kB / 0.5446 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/0.4208, allocations: 16.23 kB / 0.5446 GB, free: 13.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003702/0.4211, allocations: 291.8 kB / 0.5449 GB, free: 12.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.164e-06/0.4212, allocations: 0 / 0.5449 GB, free: 12.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007728/0.4219, allocations: 138.2 kB / 0.545 GB, free: 12.96 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.0001684/0.4221, allocations: 101.5 kB / 0.5451 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.4236, allocations: 0.7405 MB / 0.5458 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4236, allocations: 4.25 kB / 0.5458 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005637/0.4242, allocations: 420.6 kB / 0.5462 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007944/0.425, allocations: 117.6 kB / 0.5463 GB, free: 12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.4277, allocations: 1.533 MB / 0.5478 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006792/0.4284, allocations: 0.9507 MB / 0.5487 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.4285, allocations: 36.97 kB / 0.5488 GB, free: 10.11 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4285, allocations: 0 / 0.5488 GB, free: 10.11 MB / 414.1 MB Notification: Performance of Templates: time 0.01659/0.4451, allocations: 11.32 MB / 0.5598 GB, free: 14.8 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches