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.0007144/0.0007144, allocations: 93.34 kB / 16.65 MB, free: 6.598 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.0007345/0.0007345, allocations: 179.3 kB / 17.56 MB, free: 6.199 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.212/1.212, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.159/0.159, allocations: 38.1 MB / 330.8 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.0002679, allocations: 8.188 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.08763, allocations: 59.17 MB / 459.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006204/0.09387, allocations: 6.329 MB / 466.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006129/0.1, allocations: 4.831 MB / 471 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004801/0.1005, allocations: 47.62 kB / 471.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007412/0.1079, allocations: 4.585 MB / 475.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.1092, allocations: 410.4 kB / 476.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007364/0.1099, allocations: 251.7 kB / 476.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/0.1122, allocations: 2.288 MB / 478.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.1135, allocations: 0.8445 MB / 479.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005813/0.1141, allocations: 386.4 kB / 479.8 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006977/0.1148, allocations: 0.4943 MB / 480.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.476e-05/0.1149, allocations: 32 kB / 480.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002431/0.1151, allocations: 115.8 kB / 480.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002489/0.1154, allocations: 283.3 kB / 480.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002992/0.1157, allocations: 375.8 kB / 481.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007501/0.1164, allocations: 0.9731 MB / 482.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1164, allocations: 0 / 482.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.1165, allocations: 3.984 kB / 482.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1165, allocations: 0 / 482.1 MB, free: 0.7031 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.001568/0.118, allocations: 0.8843 MB / 483 MB, free: 15.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1181, allocations: 15.97 kB / 483 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004207/0.1185, allocations: 99.97 kB / 483.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009532/0.1195, allocations: 0.6075 MB / 483.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.976e-05/0.1196, allocations: 79 kB / 483.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.1197, allocations: 56 kB / 483.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.1208, allocations: 0.8099 MB / 484.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.1208, allocations: 4 kB / 484.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.537e-05/0.1209, allocations: 20 kB / 484.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.121, allocations: 49.28 kB / 484.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008318/0.1218, allocations: 0.5906 MB / 485.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00343/0.1253, allocations: 2.946 MB / 488.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007217/0.126, allocations: 442.1 kB / 488.7 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.1263, allocations: 222.3 kB / 488.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.1264, allocations: 4.656 kB / 488.9 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000431/0.1268, allocations: 346.5 kB / 489.2 MB, free: 9.258 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.693e-06/0.1268, allocations: 0 / 489.2 MB, free: 9.258 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.002761/0.1296, allocations: 2.04 MB / 491.3 MB, free: 7.062 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.1297, allocations: 148.4 kB / 491.4 MB, free: 6.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000436/0.1301, allocations: 449.8 kB / 491.9 MB, free: 6.434 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.1302, allocations: 33.7 kB / 491.9 MB, free: 6.395 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.1304, allocations: 331.9 kB / 492.2 MB, free: 6.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.1306, allocations: 161.7 kB / 492.4 MB, free: 5.906 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.19e-05/0.1306, allocations: 57.69 kB / 492.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1308, allocations: 362.8 kB / 492.8 MB, free: 5.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.1311, allocations: 233.2 kB / 493 MB, free: 5.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/0.1316, allocations: 389.8 kB / 493.4 MB, free: 4.805 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002492/0.1341, allocations: 1.331 MB / 494.7 MB, free: 3.375 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1341, allocations: 4 kB / 494.7 MB, free: 3.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00158/0.1357, allocations: 0.9746 MB / 495.7 MB, free: 2.375 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.1357, allocations: 33.7 kB / 495.7 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1358, allocations: 4 kB / 495.7 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008289/0.1366, allocations: 312.2 kB / 496.1 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009112/0.1375, allocations: 175.8 kB / 496.2 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005355/0.1429, allocations: 4.845 MB / 0.4893 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.1432, allocations: 23.98 kB / 0.4893 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.1432, allocations: 24 kB / 0.4894 GB, free: 12.69 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 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,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.0003201/0.1436, allocations: 297.5 kB / 0.4897 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.84e-05/0.1436, allocations: 51.34 kB / 0.4897 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.1447, allocations: 0.8093 MB / 0.4905 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1447, allocations: 7.938 kB / 0.4905 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1447, allocations: 0 / 0.4905 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-06/0.1447, allocations: 0 / 0.4905 GB, free: 11.46 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.001986/0.1467, allocations: 1.675 MB / 0.4921 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1467, allocations: 0 / 0.4921 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.1479, allocations: 195.8 kB / 0.4923 GB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.1481, allocations: 74.53 kB / 0.4924 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.1482, allocations: 15.98 kB / 0.4924 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002333/0.1505, allocations: 3.969 MB / 0.4963 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1505, allocations: 0 / 0.4963 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.1518, allocations: 1.13 MB / 0.4974 GB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.152, allocations: 172.4 kB / 0.4976 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.015e-05/0.152, allocations: 15.94 kB / 0.4976 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.1523, allocations: 19.98 kB / 0.4976 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.131e-05/0.1524, allocations: 35.89 kB / 0.4976 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-05/0.1524, allocations: 19.98 kB / 0.4976 GB, free: 3.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003095/0.1527, allocations: 307.1 kB / 0.4979 GB, free: 3.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1527, allocations: 0 / 0.4979 GB, free: 3.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005799/0.1533, allocations: 168 kB / 0.4981 GB, free: 3.055 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.0001403/0.1535, allocations: 127.3 kB / 0.4982 GB, free: 2.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.155, allocations: 0.9685 MB / 0.4992 GB, free: 1.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.155, allocations: 0 / 0.4992 GB, free: 1.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006714/0.1557, allocations: 0.6451 MB / 0.4998 GB, free: 1.215 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006881/0.1564, allocations: 131.5 kB / 0.4999 GB, free: 1.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1853/0.3417, allocations: 2.064 MB / 0.5019 GB, free: 56.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.3423, allocations: 0.9805 MB / 0.5029 GB, free: 55.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004617/0.3427, allocations: 114.1 kB / 0.503 GB, free: 55.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.3429, allocations: 39.58 kB / 0.503 GB, free: 55.41 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3429, allocations: 0 / 0.503 GB, free: 55.41 MB / 382.1 MB Notification: Performance of Templates: time 0.01421/0.3571, allocations: 7.87 MB / 0.5107 GB, free: 54.66 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