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.001283/0.001283, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001282/0.001282, allocations: 192 kB / 18.62 MB, free: 4.434 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.414/1.414, allocations: 222.9 MB / 242.3 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.1787/0.1787, allocations: 38.03 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001339, allocations: 60.23 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1692, allocations: 58.06 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009226/0.1784, allocations: 5.713 MB / 464 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008641/0.1871, allocations: 4.447 MB / 468.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009137/0.1881, allocations: 15.94 kB / 468.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.2, allocations: 4.889 MB / 473.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.202, allocations: 446 kB / 473.8 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000995/0.203, allocations: 267.5 kB / 474.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002624/0.2057, allocations: 1.735 MB / 475.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.2067, allocations: 0.7117 MB / 476.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008679/0.2076, allocations: 482.4 kB / 477 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008019/0.2084, allocations: 0.4982 MB / 477.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.2086, allocations: 72 kB / 477.6 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003902/0.209, allocations: 139.9 kB / 477.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003872/0.2094, allocations: 323.3 kB / 478 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004697/0.2098, allocations: 398.1 kB / 478.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.2111, allocations: 1.032 MB / 479.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.2111, allocations: 3.938 kB / 479.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.831e-06/0.2112, allocations: 0 / 479.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.2112, allocations: 3.938 kB / 479.4 MB, free: 2.125 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.002184/0.2134, allocations: 1.032 MB / 480.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.2134, allocations: 11.89 kB / 480.5 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004897/0.2139, allocations: 104 kB / 480.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.2151, allocations: 0.627 MB / 481.2 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-05/0.2152, allocations: 75.02 kB / 481.3 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.2154, allocations: 63.98 kB / 481.3 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.2166, allocations: 0.806 MB / 482.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.2166, allocations: 7.844 kB / 482.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.704e-05/0.2167, allocations: 24 kB / 482.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.2168, allocations: 53.28 kB / 482.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000937/0.2178, allocations: 0.5906 MB / 482.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004075/0.2219, allocations: 2.911 MB / 485.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008051/0.2227, allocations: 434 kB / 486.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003255/0.223, allocations: 230.3 kB / 486.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.2231, allocations: 4.656 kB / 486.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004952/0.2236, allocations: 342.5 kB / 486.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.673e-06/0.2236, allocations: 0 / 486.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003114/0.2267, allocations: 2.043 MB / 488.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/0.2268, allocations: 140.5 kB / 488.9 MB, free: 8.172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004972/0.2273, allocations: 445.8 kB / 489.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.2273, allocations: 37.7 kB / 489.4 MB, free: 7.684 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.2276, allocations: 323.8 kB / 489.7 MB, free: 7.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.2277, allocations: 165.7 kB / 489.9 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.2279, allocations: 110.2 kB / 490 MB, free: 7.082 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.2281, allocations: 366.8 kB / 490.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/0.2285, allocations: 233.2 kB / 490.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004661/0.229, allocations: 389.7 kB / 490.9 MB, free: 6.039 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002718/0.2317, allocations: 1.331 MB / 492.3 MB, free: 4.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.2317, allocations: 4 kB / 492.3 MB, free: 4.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001818/0.2335, allocations: 0.967 MB / 493.2 MB, free: 3.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.2336, allocations: 33.73 kB / 493.3 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.2336, allocations: 12 kB / 493.3 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009059/0.2345, allocations: 312.9 kB / 493.6 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008892/0.2354, allocations: 171.7 kB / 493.8 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006631/0.2421, allocations: 5.294 MB / 499 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.2425, allocations: 23.98 kB / 499.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.203e-05/0.2426, allocations: 31.98 kB / 499.1 MB, free: 13.47 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $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,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.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.0004603/0.2431, allocations: 307.2 kB / 499.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.2432, allocations: 59.22 kB / 499.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.2443, allocations: 0.7994 MB / 0.4885 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2444, allocations: 7.938 kB / 0.4885 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.2444, allocations: 4 kB / 0.4885 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.2444, allocations: 3.984 kB / 0.4885 GB, free: 12.22 MB / 382.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.002464/0.2468, allocations: 1.659 MB / 0.4902 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2469, allocations: 0 / 0.4902 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.248, allocations: 191.9 kB / 0.4904 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.2483, allocations: 74.52 kB / 0.4904 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.2483, allocations: 15.94 kB / 0.4904 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/0.2515, allocations: 4.261 MB / 0.4946 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2516, allocations: 4.031 kB / 0.4946 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.2531, allocations: 1.124 MB / 0.4957 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/0.2534, allocations: 168.3 kB / 0.4959 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.79e-05/0.2535, allocations: 16 kB / 0.4959 GB, free: 4.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.2538, allocations: 19.97 kB / 0.4959 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.923e-05/0.2539, allocations: 39.91 kB / 0.4959 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/0.2539, allocations: 15.98 kB / 0.4959 GB, free: 3.988 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003674/0.2543, allocations: 311.1 kB / 0.4962 GB, free: 3.684 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2543, allocations: 0 / 0.4962 GB, free: 3.684 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007178/0.255, allocations: 167.9 kB / 0.4964 GB, free: 3.52 MB / 382.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 (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.0001463/0.2551, allocations: 119.2 kB / 0.4965 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.257, allocations: 0.9911 MB / 0.4975 GB, free: 2.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.257, allocations: 0 / 0.4975 GB, free: 2.363 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007957/0.2578, allocations: 0.6422 MB / 0.4981 GB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.2585, allocations: 124.5 kB / 0.4982 GB, free: 1.555 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.261, allocations: 1.659 MB / 0.4999 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006127/0.2616, allocations: 0.9761 MB / 0.5008 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003215/0.2619, allocations: 116.7 kB / 0.5009 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2621, allocations: 39.42 kB / 0.501 GB, free: 14.7 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2621, allocations: 0 / 0.501 GB, free: 14.7 MB / 398.1 MB Notification: Performance of Templates: time 0.01522/0.2773, allocations: 8.39 MB / 0.5091 GB, free: 6.379 MB / 398.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches