Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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.Drives.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002078/0.002087, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.528/1.528, allocations: 205.1 MB / 223.1 MB, free: 8.48 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.00128/0.00128, allocations: 102.7 kB / 270.5 MB, free: 8.453 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1792/0.1792, allocations: 38.01 MB / 355.8 MB, free: 2.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 51.92 kB / 421.9 MB, free: 37.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3721, allocations: 55.23 MB / 477.1 MB, free: 9.926 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01253/0.3847, allocations: 8.363 MB / 485.5 MB, free: 4.004 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009385/0.3941, allocations: 5.58 MB / 491 MB, free: 168 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.3957, allocations: 53.62 kB / 491.1 MB, free: 148 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01292/0.4086, allocations: 5.659 MB / 496.8 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002465/0.4111, allocations: 497.6 kB / 497.2 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001595/0.4127, allocations: 446.6 kB / 497.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005172/0.4179, allocations: 2.961 MB / 0.4889 GB, free: 12.52 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.4194, allocations: 0.7832 MB / 0.4897 GB, free: 12.04 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001189/0.4206, allocations: 0.519 MB / 0.4902 GB, free: 11.76 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.4218, allocations: 0.7503 MB / 0.4909 GB, free: 11.33 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001613/0.422, allocations: 58.53 kB / 0.491 GB, free: 11.33 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006928/0.4227, allocations: 220.9 kB / 0.4912 GB, free: 11.24 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004983/0.4232, allocations: 460.9 kB / 0.4916 GB, free: 10.96 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007245/0.4239, allocations: 0.5345 MB / 0.4921 GB, free: 10.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001895/0.4258, allocations: 1.493 MB / 0.4936 GB, free: 9.566 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.4259, allocations: 0 / 0.4936 GB, free: 9.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4259, allocations: 0 / 0.4936 GB, free: 9.566 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.4259, allocations: 1.375 kB / 0.4936 GB, free: 9.566 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.003646/0.4296, allocations: 1.455 MB / 0.495 GB, free: 8.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.4296, allocations: 9.188 kB / 0.495 GB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007355/0.4304, allocations: 146.1 kB / 0.4952 GB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.4323, allocations: 0.8827 MB / 0.496 GB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.182e-05/0.4323, allocations: 62.39 kB / 0.4961 GB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.4326, allocations: 83.64 kB / 0.4962 GB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.4346, allocations: 1.243 MB / 0.4974 GB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.4346, allocations: 7.844 kB / 0.4974 GB, free: 6.562 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.861e-05/0.4347, allocations: 35.98 kB / 0.4974 GB, free: 6.527 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002601/0.435, allocations: 89.94 kB / 0.4975 GB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001666/0.4367, allocations: 1.007 MB / 0.4985 GB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008591/0.4453, allocations: 4.928 MB / 0.5033 GB, free: 296 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.4465, allocations: 0.6527 MB / 0.5039 GB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005938/0.4471, allocations: 351.4 kB / 0.5043 GB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.27e-05/0.4472, allocations: 24.47 kB / 0.5043 GB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007156/0.4479, allocations: 445.8 kB / 0.5047 GB, free: 14.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=62): time 4.599e-06/0.4479, allocations: 0 / 0.5047 GB, free: 14.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=65): time 0.006118/0.454, allocations: 2.714 MB / 0.5074 GB, free: 11.92 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/0.4541, allocations: 107.4 kB / 0.5075 GB, free: 11.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009948/0.4552, allocations: 0.7545 MB / 0.5082 GB, free: 11.03 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.668e-05/0.4552, allocations: 41.64 kB / 0.5083 GB, free: 10.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003404/0.4556, allocations: 0.4909 MB / 0.5087 GB, free: 10.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.4558, allocations: 244.6 kB / 0.509 GB, free: 10.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002931/0.4561, allocations: 178.5 kB / 0.5091 GB, free: 10.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.4563, allocations: 398.7 kB / 0.5095 GB, free: 9.656 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005997/0.4569, allocations: 373.8 kB / 0.5099 GB, free: 9.293 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008226/0.4577, allocations: 0.6614 MB / 0.5105 GB, free: 8.504 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.4591, allocations: 1.057 MB / 0.5116 GB, free: 7.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.4591, allocations: 4 kB / 0.5116 GB, free: 7.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002881/0.462, allocations: 1.627 MB / 0.5131 GB, free: 5.656 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.462, allocations: 8 kB / 0.5132 GB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.462, allocations: 12 kB / 0.5132 GB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.4635, allocations: 486.7 kB / 0.5136 GB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.4642, allocations: 171.7 kB / 0.5138 GB, free: 4.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009142/0.4733, allocations: 6.521 MB / 0.5202 GB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008556/0.4742, allocations: 44.03 kB / 0.5202 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-05/0.4743, allocations: 44 kB / 0.5202 GB, free: 14.11 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005639/0.4749, allocations: 353.4 kB / 0.5206 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.475, allocations: 90.91 kB / 0.5207 GB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.4769, allocations: 1.11 MB / 0.5218 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.4769, allocations: 8 kB / 0.5218 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.477, allocations: 0 / 0.5218 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.477, allocations: 7.984 kB / 0.5218 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003604/0.4806, allocations: 2.111 MB / 0.5238 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.4806, allocations: 4 kB / 0.5238 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00072/0.4813, allocations: 119.8 kB / 0.5239 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005279/0.4819, allocations: 166.5 kB / 0.5241 GB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.943e-05/0.4819, allocations: 23.98 kB / 0.5241 GB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003923/0.4859, allocations: 4.462 MB / 0.5285 GB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4859, allocations: 0 / 0.5285 GB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01963/0.5055, allocations: 12.37 MB / 0.5406 GB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004354/0.506, allocations: 208 kB / 0.5408 GB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.5062, allocations: 20 kB / 0.5408 GB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000461/0.5066, allocations: 31.97 kB / 0.5408 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.5068, allocations: 52.48 kB / 0.5409 GB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.152e-05/0.5069, allocations: 23.98 kB / 0.5409 GB, free: 7.605 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007371/0.5076, allocations: 0.5108 MB / 0.5414 GB, free: 7.098 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5076, allocations: 0 / 0.5414 GB, free: 7.098 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001497/0.5091, allocations: 368 kB / 0.5417 GB, free: 6.738 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,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.001085/0.5102, allocations: 483.2 kB / 0.5422 GB, free: 6.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002672/0.5129, allocations: 1.315 MB / 0.5435 GB, free: 4.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.5129, allocations: 4.062 kB / 0.5435 GB, free: 4.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.5143, allocations: 0.7843 MB / 0.5442 GB, free: 4.148 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5157, allocations: 191.6 kB / 0.5444 GB, free: 3.965 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006389/0.5221, allocations: 3.936 MB / 0.5483 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008823/0.523, allocations: 1.177 MB / 0.5494 GB, free: 14.73 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009917/0.524, allocations: 247.2 kB / 0.5497 GB, free: 14.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.5243, allocations: 71.42 kB / 0.5497 GB, free: 14.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5243, allocations: 4 kB / 0.5497 GB, free: 14.41 MB / 394.7 MB Notification: Performance of Templates: time 0.0308/0.5551, allocations: 17.2 MB / 0.5665 GB, free: 13.18 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches