Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009283/0.0009282, allocations: 86.16 kB / 16.31 MB, free: 6.453 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.001145/0.001145, allocations: 179.5 kB / 17.21 MB, free: 6.328 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.284/1.284, allocations: 223.3 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2601/0.2601, allocations: 38.08 MB / 330.4 MB, free: 14.19 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.0003019, allocations: 11.98 kB / 400.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2513, allocations: 59.16 MB / 459.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005755/0.2571, allocations: 6.002 MB / 465.2 MB, free: 26.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005544/0.2627, allocations: 4.442 MB / 469.7 MB, free: 23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005263/0.2632, allocations: 38.19 kB / 469.7 MB, free: 22.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007391/0.2706, allocations: 4.397 MB / 474.1 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00111/0.2718, allocations: 478.4 kB / 474.6 MB, free: 21.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006465/0.2724, allocations: 246.9 kB / 474.8 MB, free: 21.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001813/0.2742, allocations: 1.948 MB / 476.8 MB, free: 20.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009082/0.2752, allocations: 0.7927 MB / 477.6 MB, free: 19.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003951/0.2756, allocations: 392 kB / 477.9 MB, free: 19.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000521/0.2761, allocations: 483.1 kB / 478.4 MB, free: 19.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-05/0.2762, allocations: 30.81 kB / 478.5 MB, free: 19.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.2764, allocations: 81.97 kB / 478.5 MB, free: 19.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.2766, allocations: 287.5 kB / 478.8 MB, free: 19.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.2767, allocations: 164.1 kB / 479 MB, free: 19.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.2773, allocations: 0.7931 MB / 479.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2773, allocations: 0 / 479.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2773, allocations: 3.938 kB / 479.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.2773, allocations: 1.219 kB / 479.8 MB, free: 18.5 MB / 350.1 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.0013/0.2786, allocations: 0.8929 MB / 480.7 MB, free: 17.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.2787, allocations: 8.531 kB / 480.7 MB, free: 17.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003486/0.279, allocations: 102.8 kB / 480.8 MB, free: 17.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008098/0.2798, allocations: 0.589 MB / 481.4 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.549e-05/0.2799, allocations: 74.41 kB / 481.4 MB, free: 17.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.285e-05/0.28, allocations: 68.62 kB / 481.5 MB, free: 17.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.281, allocations: 0.8034 MB / 482.3 MB, free: 16.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/0.2811, allocations: 5.188 kB / 482.3 MB, free: 16.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.25e-05/0.2811, allocations: 22.09 kB / 482.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/0.2812, allocations: 53.61 kB / 482.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007323/0.282, allocations: 0.5916 MB / 483 MB, free: 16.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002775/0.2848, allocations: 2.943 MB / 485.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00059/0.2854, allocations: 426.1 kB / 486.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.2856, allocations: 230.3 kB / 486.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.2857, allocations: 4.656 kB / 486.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/0.286, allocations: 342.5 kB / 486.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.743e-06/0.286, allocations: 4 kB / 486.9 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002291/0.2883, allocations: 2.048 MB / 488.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.2884, allocations: 136.5 kB / 489.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.2887, allocations: 449.8 kB / 489.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2887, allocations: 29.7 kB / 489.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.2889, allocations: 331.9 kB / 489.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.544e-05/0.289, allocations: 165.7 kB / 490 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.289, allocations: 16 kB / 490.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.935e-05/0.2891, allocations: 358.8 kB / 490.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.2893, allocations: 233.2 kB / 490.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003125/0.2897, allocations: 394.2 kB / 491 MB, free: 7.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.2912, allocations: 0.7463 MB / 491.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2912, allocations: 0 / 491.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001336/0.2926, allocations: 0.9671 MB / 492.7 MB, free: 5.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.2926, allocations: 35.89 kB / 492.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.2926, allocations: 8 kB / 492.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007417/0.2934, allocations: 313.5 kB / 493.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007669/0.2942, allocations: 175.7 kB / 493.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004382/0.2986, allocations: 4.85 MB / 498.1 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.2988, allocations: 23.98 kB / 498.1 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.2989, allocations: 24.09 kB / 498.1 MB, free: 152 kB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_Y_D.rotor.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003316/0.2992, allocations: 302.1 kB / 498.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.311e-05/0.2993, allocations: 63.23 kB / 498.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.3004, allocations: 0.7938 MB / 499.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.3004, allocations: 7.984 kB / 499.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.3004, allocations: 4 kB / 499.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3004, allocations: 3.953 kB / 499.3 MB, free: 14.91 MB / 366.1 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.002095/0.3025, allocations: 1.674 MB / 0.4892 GB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3026, allocations: 0 / 0.4892 GB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.3036, allocations: 187.9 kB / 0.4894 GB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/0.3038, allocations: 78.52 kB / 0.4895 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/0.3038, allocations: 15.98 kB / 0.4895 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002591/0.3064, allocations: 3.953 MB / 0.4934 GB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3065, allocations: 4.156 kB / 0.4934 GB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.308, allocations: 1.13 MB / 0.4945 GB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003099/0.3083, allocations: 176.4 kB / 0.4947 GB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.755e-05/0.3084, allocations: 12 kB / 0.4947 GB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.3087, allocations: 19.98 kB / 0.4947 GB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.752e-05/0.3088, allocations: 27.95 kB / 0.4947 GB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.654e-05/0.3088, allocations: 16 kB / 0.4947 GB, free: 6.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003582/0.3092, allocations: 315.1 kB / 0.495 GB, free: 6.684 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3092, allocations: 0 / 0.495 GB, free: 6.684 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007393/0.3099, allocations: 164 kB / 0.4952 GB, free: 6.523 MB / 366.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000136/0.3101, allocations: 121 kB / 0.4953 GB, free: 6.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.3117, allocations: 0.9798 MB / 0.4963 GB, free: 5.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3117, allocations: 0 / 0.4963 GB, free: 5.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007155/0.3124, allocations: 0.6405 MB / 0.4969 GB, free: 4.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006597/0.3131, allocations: 125.8 kB / 0.497 GB, free: 4.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.3158, allocations: 2.033 MB / 0.499 GB, free: 2.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/0.3164, allocations: 0.9799 MB / 0.4999 GB, free: 1.492 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003761/0.3168, allocations: 128.6 kB / 0.5001 GB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.3169, allocations: 35.44 kB / 0.5001 GB, free: 1.328 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3169, allocations: 0 / 0.5001 GB, free: 1.328 MB / 366.1 MB Notification: Performance of Templates: time 0.01199/0.3289, allocations: 7.675 MB / 0.5076 GB, free: 9.723 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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