Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008595/0.0008596, allocations: 179.2 kB / 16.71 MB, free: 4.934 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.211/1.211, allocations: 225.7 MB / 243.2 MB, free: 8.254 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.0007861/0.0007861, allocations: 97.19 kB / 294.4 MB, free: 9.461 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.2721/0.2721, allocations: 38.18 MB / 383.7 MB, free: 40.24 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003255, allocations: 8 kB / 453.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2747, allocations: 59.15 MB / 0.5007 GB, free: 39.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006027/0.2808, allocations: 5.498 MB / 0.5061 GB, free: 37.99 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005695/0.2865, allocations: 5.771 MB / 0.5117 GB, free: 33.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005465/0.2871, allocations: 35.12 kB / 0.5117 GB, free: 33.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007098/0.2942, allocations: 4.574 MB / 0.5162 GB, free: 32.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008787/0.2951, allocations: 312.1 kB / 0.5165 GB, free: 31.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.2956, allocations: 196.3 kB / 0.5167 GB, free: 31.82 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.2976, allocations: 2.069 MB / 0.5187 GB, free: 31.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009033/0.2985, allocations: 0.8393 MB / 0.5195 GB, free: 30.65 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000342/0.2988, allocations: 298.4 kB / 0.5198 GB, free: 30.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004112/0.2992, allocations: 406.3 kB / 0.5202 GB, free: 30.39 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.226e-05/0.2993, allocations: 30.56 kB / 0.5202 GB, free: 30.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.2994, allocations: 26.84 kB / 0.5202 GB, free: 30.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.2996, allocations: 226.1 kB / 0.5205 GB, free: 30.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.2998, allocations: 311.6 kB / 0.5208 GB, free: 30.12 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005029/0.3003, allocations: 0.755 MB / 0.5215 GB, free: 29.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3004, allocations: 4 kB / 0.5215 GB, free: 29.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.123e-06/0.3004, allocations: 0 / 0.5215 GB, free: 29.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.3004, allocations: 0 / 0.5215 GB, free: 29.9 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001163/0.3015, allocations: 0.7556 MB / 0.5222 GB, free: 29.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3016, allocations: 10.59 kB / 0.5222 GB, free: 29.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002225/0.3018, allocations: 74.11 kB / 0.5223 GB, free: 29.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007477/0.3026, allocations: 0.5457 MB / 0.5228 GB, free: 28.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.134e-05/0.3026, allocations: 34.83 kB / 0.5229 GB, free: 28.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-05/0.3027, allocations: 48.61 kB / 0.5229 GB, free: 28.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007436/0.3035, allocations: 0.6259 MB / 0.5235 GB, free: 28.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.3035, allocations: 6.906 kB / 0.5235 GB, free: 28.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/0.3035, allocations: 19.06 kB / 0.5236 GB, free: 28.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/0.3036, allocations: 50.89 kB / 0.5236 GB, free: 28.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005611/0.3042, allocations: 460.1 kB / 0.524 GB, free: 28.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/0.3063, allocations: 2.529 MB / 0.5265 GB, free: 26.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.3067, allocations: 283.7 kB / 0.5268 GB, free: 26.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.3068, allocations: 141.6 kB / 0.5269 GB, free: 26.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.3069, allocations: 7.031 kB / 0.5269 GB, free: 26.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.3069, allocations: 38.09 kB / 0.527 GB, free: 26.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.442e-06/0.3069, allocations: 0 / 0.527 GB, free: 26.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002237/0.3091, allocations: 1.544 MB / 0.5285 GB, free: 25.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.3092, allocations: 80.17 kB / 0.5285 GB, free: 25.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003288/0.3095, allocations: 416.6 kB / 0.5289 GB, free: 24.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.3095, allocations: 32.98 kB / 0.529 GB, free: 24.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.3097, allocations: 299.2 kB / 0.5293 GB, free: 24.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.092e-05/0.3097, allocations: 109.2 kB / 0.5294 GB, free: 24.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.696e-05/0.3098, allocations: 11.28 kB / 0.5294 GB, free: 24.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.882e-05/0.3098, allocations: 356.5 kB / 0.5297 GB, free: 24.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.31, allocations: 133.5 kB / 0.5298 GB, free: 24.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.3102, allocations: 269 kB / 0.5301 GB, free: 24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/0.3107, allocations: 450.8 kB / 0.5305 GB, free: 23.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3107, allocations: 3.312 kB / 0.5305 GB, free: 23.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008282/0.3115, allocations: 0.6758 MB / 0.5312 GB, free: 23.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3115, allocations: 9.156 kB / 0.5312 GB, free: 23.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.3115, allocations: 7.031 kB / 0.5312 GB, free: 23.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/0.3119, allocations: 150.5 kB / 0.5314 GB, free: 23.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/0.3122, allocations: 80.2 kB / 0.5314 GB, free: 23.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/0.3144, allocations: 3.391 MB / 0.5347 GB, free: 20.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.3146, allocations: 10.31 kB / 0.5348 GB, free: 20.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.3146, allocations: 27.59 kB / 0.5348 GB, free: 20.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002072/0.3148, allocations: 238.3 kB / 0.535 GB, free: 20.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.3149, allocations: 49.94 kB / 0.5351 GB, free: 20.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008118/0.3157, allocations: 0.566 MB / 0.5356 GB, free: 19.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3157, allocations: 11.14 kB / 0.5356 GB, free: 19.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0005636/0.3163, allocations: 494.5 kB / 0.5361 GB, free: 19.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3163, allocations: 0 / 0.5361 GB, free: 19.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.3175, allocations: 0.9918 MB / 0.5371 GB, free: 18.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3175, allocations: 3.312 kB / 0.5371 GB, free: 18.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.3176, allocations: 40.36 kB / 0.5371 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002167/0.3179, allocations: 95.78 kB / 0.5372 GB, free: 18.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.3179, allocations: 7.281 kB / 0.5372 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.3192, allocations: 1.862 MB / 0.539 GB, free: 17.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3192, allocations: 6.672 kB / 0.539 GB, free: 17.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007117/0.3199, allocations: 0.6399 MB / 0.5396 GB, free: 16.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.32, allocations: 142.4 kB / 0.5398 GB, free: 16.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.583e-05/0.3201, allocations: 10.39 kB / 0.5398 GB, free: 16.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.3203, allocations: 7.188 kB / 0.5398 GB, free: 16.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/0.3203, allocations: 28.34 kB / 0.5398 GB, free: 16.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.3204, allocations: 9.812 kB / 0.5398 GB, free: 16.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002373/0.3206, allocations: 299 kB / 0.5401 GB, free: 16.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3206, allocations: 0 / 0.5401 GB, free: 16.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004426/0.3211, allocations: 120.8 kB / 0.5402 GB, free: 16.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.618e-05/0.3212, allocations: 111.1 kB / 0.5403 GB, free: 16.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007557/0.3219, allocations: 0.6109 MB / 0.5409 GB, free: 16.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3219, allocations: 0.9375 kB / 0.5409 GB, free: 16.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003629/0.3223, allocations: 302.3 kB / 0.5412 GB, free: 15.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006781/0.323, allocations: 113.7 kB / 0.5413 GB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.3244, allocations: 1.397 MB / 0.5427 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.3247, allocations: 0.9333 MB / 0.5436 GB, free: 14.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002228/0.325, allocations: 71.36 kB / 0.5437 GB, free: 14.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.767e-05/0.325, allocations: 39.64 kB / 0.5437 GB, free: 14.25 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.325, allocations: 4 kB / 0.5437 GB, free: 14.25 MB / 378.7 MB Notification: Performance of Templates: time 0.009974/0.335, allocations: 5.312 MB / 0.5489 GB, free: 13.88 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches