Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008043/0.0008044, allocations: 182.4 kB / 16.71 MB, free: 4.938 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.261/1.261, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0007054/0.0007055, allocations: 92.83 kB / 294.4 MB, free: 9.492 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.2815/0.2815, allocations: 38.18 MB / 383.7 MB, free: 40.31 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002865, allocations: 8 kB / 453.5 MB, free: 8.773 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2751, allocations: 59.15 MB / 0.5007 GB, free: 39.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006177/0.2814, allocations: 6.131 MB / 0.5067 GB, free: 37.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006823/0.2882, allocations: 6.746 MB / 0.5133 GB, free: 31.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008743/0.2891, allocations: 38.56 kB / 0.5133 GB, free: 31.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007899/0.297, allocations: 4.591 MB / 0.5178 GB, free: 30.68 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001086/0.2981, allocations: 413.6 kB / 0.5182 GB, free: 30.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007059/0.2989, allocations: 252.5 kB / 0.5184 GB, free: 30.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002254/0.3011, allocations: 2.292 MB / 0.5207 GB, free: 29.66 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001252/0.3024, allocations: 1.072 MB / 0.5217 GB, free: 28.92 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000659/0.3031, allocations: 401.6 kB / 0.5221 GB, free: 28.78 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006915/0.3038, allocations: 497.1 kB / 0.5226 GB, free: 28.61 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.3039, allocations: 32.03 kB / 0.5226 GB, free: 28.61 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003233/0.3042, allocations: 112.8 kB / 0.5227 GB, free: 28.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002577/0.3045, allocations: 283.3 kB / 0.523 GB, free: 28.49 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004088/0.3049, allocations: 376.5 kB / 0.5233 GB, free: 28.26 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000724/0.3056, allocations: 0.9758 MB / 0.5243 GB, free: 27.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3056, allocations: 0 / 0.5243 GB, free: 27.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3057, allocations: 0 / 0.5243 GB, free: 27.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.3057, allocations: 3.938 kB / 0.5243 GB, free: 27.98 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001461/0.3072, allocations: 0.8883 MB / 0.5252 GB, free: 27.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.3072, allocations: 6.469 kB / 0.5252 GB, free: 27.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003949/0.3076, allocations: 101.8 kB / 0.5253 GB, free: 27.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009336/0.3085, allocations: 0.6105 MB / 0.5259 GB, free: 26.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.366e-05/0.3086, allocations: 71.08 kB / 0.5259 GB, free: 26.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.3087, allocations: 65.3 kB / 0.526 GB, free: 26.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.3098, allocations: 0.7977 MB / 0.5268 GB, free: 26.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.3099, allocations: 10.42 kB / 0.5268 GB, free: 26.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.001e-05/0.3099, allocations: 19.16 kB / 0.5268 GB, free: 26.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.31, allocations: 50.59 kB / 0.5268 GB, free: 26.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007744/0.3108, allocations: 0.5885 MB / 0.5274 GB, free: 26.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003002/0.3138, allocations: 2.95 MB / 0.5303 GB, free: 24.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000619/0.3144, allocations: 420.3 kB / 0.5307 GB, free: 24.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002487/0.3147, allocations: 223.4 kB / 0.5309 GB, free: 24.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.3147, allocations: 7.938 kB / 0.5309 GB, free: 24.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003654/0.3151, allocations: 341.6 kB / 0.5312 GB, free: 23.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.736e-06/0.3151, allocations: 3.984 kB / 0.5312 GB, free: 23.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.002385/0.3175, allocations: 2.044 MB / 0.5332 GB, free: 22.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.3176, allocations: 143.1 kB / 0.5334 GB, free: 22.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003498/0.3179, allocations: 445.5 kB / 0.5338 GB, free: 22.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.318, allocations: 36.86 kB / 0.5338 GB, free: 22.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3181, allocations: 331.9 kB / 0.5342 GB, free: 21.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.388e-05/0.3182, allocations: 156.8 kB / 0.5343 GB, free: 21.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.53e-05/0.3182, allocations: 15.19 kB / 0.5343 GB, free: 21.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.609e-05/0.3183, allocations: 357.9 kB / 0.5347 GB, free: 21.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.3186, allocations: 234 kB / 0.5349 GB, free: 21.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.3189, allocations: 392.5 kB / 0.5353 GB, free: 20.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002162/0.3211, allocations: 1.33 MB / 0.5366 GB, free: 20.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3211, allocations: 7.406 kB / 0.5366 GB, free: 20.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001348/0.3225, allocations: 0.9623 MB / 0.5375 GB, free: 19.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.3225, allocations: 36.27 kB / 0.5375 GB, free: 19.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3225, allocations: 7.094 kB / 0.5375 GB, free: 19.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007631/0.3233, allocations: 313 kB / 0.5378 GB, free: 19.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007987/0.3241, allocations: 170.9 kB / 0.538 GB, free: 19.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004517/0.3286, allocations: 4.854 MB / 0.5427 GB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/0.3289, allocations: 23.73 kB / 0.5428 GB, free: 16.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.021e-05/0.329, allocations: 25.38 kB / 0.5428 GB, free: 16.01 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.loadInertia.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002945/0.3293, allocations: 293.3 kB / 0.5431 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.094e-05/0.3293, allocations: 56.91 kB / 0.5431 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008782/0.3302, allocations: 0.8009 MB / 0.5439 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3302, allocations: 6.438 kB / 0.5439 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3303, allocations: 0 / 0.5439 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3303, allocations: 2.359 kB / 0.5439 GB, free: 15.26 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.332, allocations: 1.688 MB / 0.5456 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.332, allocations: 0 / 0.5456 GB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.3331, allocations: 191.2 kB / 0.5457 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001808/0.3333, allocations: 79.77 kB / 0.5458 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.429e-05/0.3333, allocations: 16.25 kB / 0.5458 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.3351, allocations: 3.957 MB / 0.5497 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3351, allocations: 0 / 0.5497 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.3363, allocations: 1.121 MB / 0.5508 GB, free: 9.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.3364, allocations: 172.8 kB / 0.551 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.596e-05/0.3365, allocations: 19.8 kB / 0.551 GB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.3368, allocations: 19.84 kB / 0.551 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.428e-05/0.3369, allocations: 34.92 kB / 0.551 GB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.3369, allocations: 11.38 kB / 0.551 GB, free: 9.258 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002782/0.3372, allocations: 315.9 kB / 0.5513 GB, free: 9.109 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3372, allocations: 0 / 0.5513 GB, free: 9.109 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005637/0.3378, allocations: 169.8 kB / 0.5515 GB, free: 9.086 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (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.000131/0.3379, allocations: 119.8 kB / 0.5516 GB, free: 8.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.3393, allocations: 0.9677 MB / 0.5526 GB, free: 8.445 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3394, allocations: 4.125 kB / 0.5526 GB, free: 8.441 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005932/0.34, allocations: 0.6489 MB / 0.5532 GB, free: 7.949 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006472/0.3406, allocations: 127.5 kB / 0.5533 GB, free: 7.902 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.3429, allocations: 2.048 MB / 0.5553 GB, free: 6.617 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.3434, allocations: 0.9838 MB / 0.5563 GB, free: 5.871 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003683/0.3438, allocations: 113.2 kB / 0.5564 GB, free: 5.848 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.3439, allocations: 39.72 kB / 0.5564 GB, free: 5.84 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3439, allocations: 0 / 0.5564 GB, free: 5.84 MB / 378.7 MB Notification: Performance of Templates: time 0.01292/0.3568, allocations: 7.868 MB / 0.5641 GB, free: 3.242 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches