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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 114.3 kB / 17.75 MB, free: 5.332 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.001834/0.001834, allocations: 185.3 kB / 18.68 MB, free: 4.41 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.336/1.336, 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.1718/0.1718, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.91 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2837, allocations: 58.04 MB / 0.5048 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007755/0.2914, allocations: 7.113 MB / 0.5117 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007539/0.299, allocations: 5.086 MB / 0.5167 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008782/0.2999, allocations: 31.41 kB / 0.5167 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01164/0.3116, allocations: 5.71 MB / 0.5223 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001374/0.313, allocations: 0.5123 MB / 0.5228 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.3143, allocations: 0.4885 MB / 0.5233 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003081/0.3174, allocations: 2.252 MB / 0.5255 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.3188, allocations: 0.9426 MB / 0.5264 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.3199, allocations: 0.6037 MB / 0.527 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001184/0.3211, allocations: 0.7167 MB / 0.5277 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002916/0.3214, allocations: 101 kB / 0.5278 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007459/0.3222, allocations: 262.2 kB / 0.528 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006213/0.3228, allocations: 498.4 kB / 0.5285 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3239, allocations: 0.5807 MB / 0.5291 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001615/0.3255, allocations: 1.55 MB / 0.5306 GB, free: 9.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3255, allocations: 0 / 0.5306 GB, free: 9.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3255, allocations: 1.844 kB / 0.5306 GB, free: 9.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.3255, allocations: 0 / 0.5306 GB, free: 9.391 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002835/0.3284, allocations: 1.457 MB / 0.532 GB, free: 8.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3284, allocations: 8.625 kB / 0.532 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005992/0.329, allocations: 146.5 kB / 0.5322 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/0.3307, allocations: 0.9093 MB / 0.533 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.041e-05/0.3308, allocations: 67.86 kB / 0.5331 GB, free: 7.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.3309, allocations: 84.03 kB / 0.5332 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.3327, allocations: 1.24 MB / 0.5344 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.733e-05/0.3327, allocations: 2.5 kB / 0.5344 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.113e-05/0.3328, allocations: 36.73 kB / 0.5344 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002151/0.333, allocations: 88.5 kB / 0.5345 GB, free: 6.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.3346, allocations: 1.011 MB / 0.5355 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006157/0.3407, allocations: 4.886 MB / 0.5403 GB, free: 2.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009135/0.3417, allocations: 0.6479 MB / 0.5409 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000543/0.3422, allocations: 357.1 kB / 0.5413 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.3423, allocations: 11.27 kB / 0.5413 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006143/0.3429, allocations: 458.9 kB / 0.5417 GB, free: 1.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.385e-06/0.3429, allocations: 0 / 0.5417 GB, free: 1.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004517/0.3474, allocations: 2.717 MB / 0.5444 GB, free: 15.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.3475, allocations: 110.3 kB / 0.5445 GB, free: 15.28 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008608/0.3484, allocations: 0.7484 MB / 0.5452 GB, free: 14.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.471e-05/0.3484, allocations: 41.7 kB / 0.5452 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003269/0.3488, allocations: 0.4948 MB / 0.5457 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.349, allocations: 236.5 kB / 0.5459 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000259/0.3492, allocations: 182.5 kB / 0.5461 GB, free: 13.67 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3494, allocations: 402.7 kB / 0.5465 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005616/0.35, allocations: 373.8 kB / 0.5469 GB, free: 12.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007351/0.3507, allocations: 0.6539 MB / 0.5475 GB, free: 12.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.352, allocations: 1.053 MB / 0.5485 GB, free: 10.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.431e-06/0.352, allocations: 4 kB / 0.5485 GB, free: 10.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002859/0.3549, allocations: 1.635 MB / 0.5501 GB, free: 9.273 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3549, allocations: 8 kB / 0.5501 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3549, allocations: 15.88 kB / 0.5501 GB, free: 9.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/0.3565, allocations: 485.4 kB / 0.5506 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006272/0.3571, allocations: 171.7 kB / 0.5508 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009083/0.3662, allocations: 7.077 MB / 0.5577 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007702/0.367, allocations: 48.03 kB / 0.5577 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-05/0.3671, allocations: 43.98 kB / 0.5578 GB, free: 1.152 MB / 414.1 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.0005529/0.3676, allocations: 345.5 kB / 0.5581 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.3678, allocations: 86.88 kB / 0.5582 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.3697, allocations: 1.114 MB / 0.5593 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.3697, allocations: 3.984 kB / 0.5593 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3698, allocations: 0 / 0.5593 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004255/0.3702, allocations: 224 kB / 0.5595 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.3704, allocations: 20 kB / 0.5595 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004361/0.3708, allocations: 27.97 kB / 0.5595 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.3709, allocations: 48.48 kB / 0.5596 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002759/0.3737, allocations: 1.187 MB / 0.5607 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001861/0.3756, allocations: 1.412 MB / 0.5621 GB, free: 12.57 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004893/0.3761, allocations: 360.2 kB / 0.5625 GB, free: 12.22 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007271/0.3768, allocations: 0.5068 MB / 0.563 GB, free: 11.72 MB / 430.1 MB Notification: Performance of Backend: time 3.11e-07/0.3768, allocations: 0 / 0.563 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003772/0.3806, allocations: 1.573 MB / 0.5645 GB, free: 10.3 MB / 430.1 MB Notification: Performance of SimCode: time 0.004256/0.3849, allocations: 3.066 MB / 0.5675 GB, free: 7.188 MB / 430.1 MB Notification: Performance of Templates: time 0.0268/0.4117, allocations: 16.22 MB / 0.5833 GB, free: 7.09 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches