Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000846/0.0008461, allocations: 182.2 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007674/0.0007674, allocations: 89.56 kB / 294.4 MB, free: 9.484 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2671/0.2671, allocations: 38.18 MB / 383.7 MB, free: 40.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003016/0.0003017, allocations: 12 kB / 453.6 MB, free: 8.746 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2673, allocations: 59.15 MB / 0.5007 GB, free: 39.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.006813/0.2742, allocations: 7.585 MB / 0.5081 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007351/0.2816, allocations: 7.583 MB / 0.5155 GB, free: 30.17 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007322/0.2823, allocations: 50.91 kB / 0.5156 GB, free: 30.15 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007563/0.2899, allocations: 5.448 MB / 0.5209 GB, free: 28.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009932/0.2909, allocations: 494.9 kB / 0.5213 GB, free: 28.6 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009956/0.2919, allocations: 452.7 kB / 0.5218 GB, free: 28.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002162/0.2941, allocations: 2.952 MB / 0.5247 GB, free: 27.51 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.2952, allocations: 1.24 MB / 0.5259 GB, free: 26.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005351/0.2957, allocations: 0.5119 MB / 0.5264 GB, free: 26.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006769/0.2964, allocations: 0.704 MB / 0.5271 GB, free: 26.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.2965, allocations: 47.66 kB / 0.5271 GB, free: 26.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004571/0.297, allocations: 200.4 kB / 0.5273 GB, free: 26.21 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003102/0.2973, allocations: 437.3 kB / 0.5277 GB, free: 26.08 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003825/0.2977, allocations: 0.5373 MB / 0.5282 GB, free: 25.75 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00091/0.2986, allocations: 1.465 MB / 0.5297 GB, free: 25.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2986, allocations: 0 / 0.5297 GB, free: 25.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.2986, allocations: 0 / 0.5297 GB, free: 25.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.2986, allocations: 7.875 kB / 0.5297 GB, free: 25.32 MB / 378.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.001999/0.3006, allocations: 1.25 MB / 0.5309 GB, free: 24.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.3007, allocations: 9 kB / 0.5309 GB, free: 24.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004733/0.3012, allocations: 150.5 kB / 0.531 GB, free: 24.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.3023, allocations: 0.8787 MB / 0.5319 GB, free: 23.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.3024, allocations: 61.23 kB / 0.532 GB, free: 23.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.3025, allocations: 88.73 kB / 0.5321 GB, free: 23.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.3039, allocations: 1.225 MB / 0.5332 GB, free: 23.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.3039, allocations: 11.27 kB / 0.5333 GB, free: 23.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-05/0.304, allocations: 37.8 kB / 0.5333 GB, free: 23.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001779/0.3042, allocations: 89.92 kB / 0.5334 GB, free: 23.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.3054, allocations: 1.004 MB / 0.5344 GB, free: 22.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004908/0.3103, allocations: 4.929 MB / 0.5392 GB, free: 19.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007235/0.3111, allocations: 0.6508 MB / 0.5398 GB, free: 19.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004634/0.3116, allocations: 362.6 kB / 0.5402 GB, free: 19.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.615e-05/0.3116, allocations: 7 kB / 0.5402 GB, free: 19.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005453/0.3122, allocations: 446.8 kB / 0.5406 GB, free: 18.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=62): time 2.484e-06/0.3122, allocations: 0 / 0.5406 GB, free: 18.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.003686/0.3159, allocations: 2.704 MB / 0.5432 GB, free: 17.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.3159, allocations: 114.4 kB / 0.5433 GB, free: 17.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007172/0.3166, allocations: 0.744 MB / 0.5441 GB, free: 16.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.3167, allocations: 36.73 kB / 0.5441 GB, free: 16.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.3169, allocations: 0.4929 MB / 0.5446 GB, free: 16.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.3171, allocations: 252.3 kB / 0.5448 GB, free: 16.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.09e-05/0.3171, allocations: 14.97 kB / 0.5448 GB, free: 16.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3172, allocations: 403.3 kB / 0.5452 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004735/0.3177, allocations: 365.2 kB / 0.5456 GB, free: 15.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006419/0.3184, allocations: 0.6531 MB / 0.5462 GB, free: 15.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.3195, allocations: 1.048 MB / 0.5472 GB, free: 14.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3195, allocations: 2.75 kB / 0.5472 GB, free: 14.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002648/0.3222, allocations: 1.615 MB / 0.5488 GB, free: 13.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3222, allocations: 9.625 kB / 0.5488 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.3222, allocations: 12.86 kB / 0.5488 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.3236, allocations: 495.3 kB / 0.5493 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005899/0.3242, allocations: 170.3 kB / 0.5495 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007595/0.3319, allocations: 6.5 MB / 0.5558 GB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005784/0.3324, allocations: 43.14 kB / 0.5559 GB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/0.3325, allocations: 45.48 kB / 0.5559 GB, free: 9.383 MB / 378.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.0004402/0.333, allocations: 360.2 kB / 0.5562 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.101e-05/0.3331, allocations: 84.23 kB / 0.5563 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.3347, allocations: 1.115 MB / 0.5574 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3347, allocations: 6.812 kB / 0.5574 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3347, allocations: 6.219 kB / 0.5574 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.3347, allocations: 8.625 kB / 0.5574 GB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.3376, allocations: 2.124 MB / 0.5595 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3376, allocations: 2.219 kB / 0.5595 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.3383, allocations: 124.4 kB / 0.5596 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004701/0.3387, allocations: 169.1 kB / 0.5598 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.903e-05/0.3388, allocations: 20.3 kB / 0.5598 GB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002725/0.3415, allocations: 4.447 MB / 0.5641 GB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3415, allocations: 1.25 kB / 0.5642 GB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.3435, allocations: 1.534 MB / 0.5656 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.3437, allocations: 217.2 kB / 0.5659 GB, free: 1.332 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.3438, allocations: 19.62 kB / 0.5659 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003969/0.3442, allocations: 35 kB / 0.5659 GB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.3444, allocations: 55.67 kB / 0.566 GB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.961e-05/0.3444, allocations: 24.36 kB / 0.566 GB, free: 1.262 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006239/0.3451, allocations: 0.5016 MB / 0.5665 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3451, allocations: 4 kB / 0.5665 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009752/0.3461, allocations: 260.7 kB / 0.5667 GB, free: 0.9414 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.0008979/0.347, allocations: 489.1 kB / 0.5672 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.3494, allocations: 1.324 MB / 0.5685 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3494, allocations: 2.594 kB / 0.5685 GB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.3506, allocations: 0.776 MB / 0.5692 GB, free: 15.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.3517, allocations: 211.1 kB / 0.5694 GB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.3559, allocations: 3.294 MB / 0.5727 GB, free: 11.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007544/0.3566, allocations: 1.151 MB / 0.5738 GB, free: 10.42 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000704/0.3574, allocations: 227.3 kB / 0.574 GB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3575, allocations: 67.42 kB / 0.5741 GB, free: 10.13 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3576, allocations: 4 kB / 0.5741 GB, free: 10.12 MB / 394.7 MB Notification: Performance of Templates: time 0.02149/0.379, allocations: 13.8 MB / 0.5875 GB, free: 12.39 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/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