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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 182.5 kB / 17.27 MB, free: 4.48 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.1 MB / 223.1 MB, free: 8.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009584/0.0009584, allocations: 101.2 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1723/0.1723, allocations: 38.01 MB / 355.9 MB, free: 2.918 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 63.91 kB / 421.9 MB, free: 37.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3694, allocations: 55.23 MB / 477.1 MB, free: 9.895 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.008593/0.3781, allocations: 6.227 MB / 483.3 MB, free: 5.484 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007742/0.3858, allocations: 4.599 MB / 487.9 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.387, allocations: 36.38 kB / 488 MB, free: 2.312 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01364/0.4007, allocations: 4.76 MB / 492.7 MB, free: 1.062 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.4026, allocations: 330.3 kB / 493 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009187/0.4035, allocations: 220.5 kB / 493.3 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004084/0.4076, allocations: 2.143 MB / 495.4 MB, free: 108 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007762/0.4084, allocations: 341.3 kB / 495.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007142/0.4091, allocations: 322.1 kB / 496 MB, free: 15.76 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008696/0.41, allocations: 475.7 kB / 496.5 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.4102, allocations: 33.78 kB / 496.5 MB, free: 15.49 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005383/0.4107, allocations: 124.2 kB / 496.7 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003632/0.4111, allocations: 263.7 kB / 496.9 MB, free: 15.28 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000426/0.4115, allocations: 302.1 kB / 497.2 MB, free: 15.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009451/0.4125, allocations: 0.7245 MB / 497.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.4125, allocations: 0 / 497.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4125, allocations: 1.344 kB / 497.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.4126, allocations: 0 / 497.9 MB, free: 14.59 MB / 330.7 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.00237/0.4149, allocations: 0.9056 MB / 498.9 MB, free: 13.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.417e-05/0.415, allocations: 13.2 kB / 498.9 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006323/0.4157, allocations: 95.11 kB / 499 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.4169, allocations: 0.5407 MB / 499.5 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.4169, allocations: 31.88 kB / 499.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-05/0.417, allocations: 55.17 kB / 499.6 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.4181, allocations: 0.6421 MB / 0.4885 GB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.4182, allocations: 5.344 kB / 0.4885 GB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.084e-05/0.4182, allocations: 16.62 kB / 0.4885 GB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000159/0.4184, allocations: 52.23 kB / 0.4886 GB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008776/0.4193, allocations: 488.4 kB / 0.489 GB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005226/0.4245, allocations: 2.54 MB / 0.4915 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006988/0.4252, allocations: 324.5 kB / 0.4918 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003282/0.4256, allocations: 176.8 kB / 0.492 GB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.994e-05/0.4256, allocations: 11.19 kB / 0.492 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.233e-05/0.4257, allocations: 44.66 kB / 0.4921 GB, free: 10.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 4.619e-06/0.4257, allocations: 1.094 kB / 0.4921 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003207/0.4289, allocations: 1.629 MB / 0.4936 GB, free: 8.926 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.4291, allocations: 106 kB / 0.4937 GB, free: 8.801 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000635/0.4297, allocations: 430.4 kB / 0.4942 GB, free: 8.543 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.4297, allocations: 31.05 kB / 0.4942 GB, free: 8.508 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.43, allocations: 305.6 kB / 0.4945 GB, free: 8.234 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.4302, allocations: 121.8 kB / 0.4946 GB, free: 8.129 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.4304, allocations: 86.09 kB / 0.4947 GB, free: 8.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.4306, allocations: 367.1 kB / 0.495 GB, free: 7.719 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.4309, allocations: 160.9 kB / 0.4952 GB, free: 7.641 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003803/0.4313, allocations: 307.5 kB / 0.4955 GB, free: 7.383 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006857/0.432, allocations: 493.9 kB / 0.4959 GB, free: 7.031 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.432, allocations: 3.938 kB / 0.4959 GB, free: 7.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001531/0.4335, allocations: 0.7988 MB / 0.4967 GB, free: 6.535 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.4336, allocations: 6.062 kB / 0.4967 GB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.4336, allocations: 3.562 kB / 0.4967 GB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007562/0.4344, allocations: 210 kB / 0.4969 GB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003775/0.4347, allocations: 71.55 kB / 0.497 GB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004387/0.4391, allocations: 3.886 MB / 0.5008 GB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.4395, allocations: 19.98 kB / 0.5008 GB, free: 2.273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.637e-05/0.4396, allocations: 20 kB / 0.5008 GB, free: 2.254 MB / 330.7 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.0003251/0.4399, allocations: 225.6 kB / 0.5011 GB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.44, allocations: 51.38 kB / 0.5011 GB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009077/0.4409, allocations: 0.6371 MB / 0.5017 GB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.4409, allocations: 4 kB / 0.5017 GB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.4409, allocations: 4 kB / 0.5017 GB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4409, allocations: 4 kB / 0.5017 GB, free: 1.277 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.4426, allocations: 1.207 MB / 0.5029 GB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.4426, allocations: 0 / 0.5029 GB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/0.4431, allocations: 75.95 kB / 0.503 GB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001453/0.4432, allocations: 53.67 kB / 0.503 GB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.4433, allocations: 15.98 kB / 0.5031 GB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.4451, allocations: 2.622 MB / 0.5056 GB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4451, allocations: 4.031 kB / 0.5056 GB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008438/0.4536, allocations: 7.119 MB / 0.5126 GB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.4539, allocations: 144.5 kB / 0.5127 GB, free: 5.035 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.507e-05/0.4539, allocations: 16.14 kB / 0.5127 GB, free: 5.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.4542, allocations: 19.94 kB / 0.5127 GB, free: 5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.411e-05/0.4543, allocations: 27.95 kB / 0.5128 GB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.4543, allocations: 8 kB / 0.5128 GB, free: 4.965 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003488/0.4547, allocations: 291.1 kB / 0.5131 GB, free: 4.684 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4547, allocations: 0 / 0.5131 GB, free: 4.684 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008992/0.4556, allocations: 188 kB / 0.5132 GB, free: 4.5 MB / 346.7 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.0001868/0.4558, allocations: 119.1 kB / 0.5133 GB, free: 4.375 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.4573, allocations: 0.7352 MB / 0.5141 GB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.4574, allocations: 0 / 0.5141 GB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.4579, allocations: 414.1 kB / 0.5145 GB, free: 3.184 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.4587, allocations: 118.4 kB / 0.5146 GB, free: 3.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003237/0.4619, allocations: 2.22 MB / 0.5167 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006019/0.4626, allocations: 0.9524 MB / 0.5177 GB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003837/0.4629, allocations: 112.4 kB / 0.5178 GB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.4631, allocations: 43.42 kB / 0.5178 GB, free: 15.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4631, allocations: 0 / 0.5178 GB, free: 15.64 MB / 362.7 MB Notification: Performance of Templates: time 0.01388/0.477, allocations: 7.918 MB / 0.5255 GB, free: 7.73 MB / 362.7 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@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches