Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 115.4 kB / 17.69 MB, free: 5.312 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.001702/0.001702, allocations: 191 kB / 18.63 MB, free: 4.379 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.512/1.512, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1818/0.1818, allocations: 38.04 MB / 330.5 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 62.7 kB / 400.3 MB, free: 33.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.127, allocations: 58.06 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01001/0.1371, allocations: 7.107 MB / 465.4 MB, free: 208 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00866/0.1458, allocations: 5.094 MB / 470.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008589/0.1467, allocations: 31.88 kB / 470.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01064/0.1574, allocations: 5.7 MB / 476.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001653/0.159, allocations: 0.5053 MB / 476.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.1604, allocations: 0.4942 MB / 477.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003176/0.1636, allocations: 2.249 MB / 479.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.1648, allocations: 0.9235 MB / 480.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009295/0.1657, allocations: 0.6072 MB / 481.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009097/0.1666, allocations: 0.7163 MB / 481.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.1668, allocations: 100 kB / 481.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005217/0.1673, allocations: 255.7 kB / 482.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004217/0.1677, allocations: 494.8 kB / 482.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005734/0.1683, allocations: 0.587 MB / 483.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001592/0.1699, allocations: 1.542 MB / 484.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1699, allocations: 3.984 kB / 484.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1699, allocations: 4 kB / 484.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.17, allocations: 0 / 484.7 MB, free: 12.85 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002864/0.1728, allocations: 1.448 MB / 486.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.1729, allocations: 12.03 kB / 486.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006303/0.1735, allocations: 151.5 kB / 486.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/0.1753, allocations: 0.921 MB / 487.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.089e-05/0.1754, allocations: 58 kB / 487.3 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001574/0.1756, allocations: 83.98 kB / 487.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.1774, allocations: 1.227 MB / 488.6 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.1774, allocations: 15.91 kB / 488.6 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.219e-05/0.1775, allocations: 28 kB / 488.7 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002235/0.1778, allocations: 97.88 kB / 488.8 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.1793, allocations: 1.003 MB / 489.8 MB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006972/0.1863, allocations: 4.893 MB / 494.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009456/0.1873, allocations: 0.6537 MB / 495.3 MB, free: 1.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005451/0.1878, allocations: 363.3 kB / 495.7 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.182e-05/0.1879, allocations: 8.562 kB / 495.7 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006392/0.1886, allocations: 453.7 kB / 496.1 MB, free: 1.023 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.445e-06/0.1886, allocations: 0 / 496.1 MB, free: 1.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004928/0.1935, allocations: 2.708 MB / 498.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/0.1936, allocations: 119.4 kB / 498.9 MB, free: 14.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.1946, allocations: 0.7506 MB / 499.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.971e-05/0.1947, allocations: 41.7 kB / 499.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003532/0.1951, allocations: 498.7 kB / 0.4885 GB, free: 12.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.1953, allocations: 236.6 kB / 0.4887 GB, free: 12.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002752/0.1956, allocations: 186.5 kB / 0.4889 GB, free: 12.31 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.1957, allocations: 394.7 kB / 0.4893 GB, free: 11.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005528/0.1963, allocations: 381.7 kB / 0.4896 GB, free: 11.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007855/0.1971, allocations: 0.65 MB / 0.4903 GB, free: 10.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.1985, allocations: 1.053 MB / 0.4913 GB, free: 9.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.1985, allocations: 4 kB / 0.4913 GB, free: 9.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002958/0.2015, allocations: 1.627 MB / 0.4929 GB, free: 7.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.2015, allocations: 11.98 kB / 0.4929 GB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/0.2016, allocations: 8.5 kB / 0.4929 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/0.2031, allocations: 493.8 kB / 0.4934 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006832/0.2038, allocations: 163.7 kB / 0.4935 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.2139, allocations: 7.09 MB / 0.5005 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009195/0.2148, allocations: 44.03 kB / 0.5005 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/0.2149, allocations: 43.98 kB / 0.5006 GB, free: 15.79 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.00064/0.2156, allocations: 353.5 kB / 0.5009 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.2157, allocations: 86.88 kB / 0.501 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.2176, allocations: 1.118 MB / 0.5021 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.2176, allocations: 8 kB / 0.5021 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.2176, allocations: 0 / 0.5021 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.2177, allocations: 3.984 kB / 0.5021 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003496/0.2212, allocations: 2.119 MB / 0.5041 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.2212, allocations: 0 / 0.5041 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007139/0.2219, allocations: 127.8 kB / 0.5043 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005239/0.2224, allocations: 162.5 kB / 0.5044 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.675e-05/0.2225, allocations: 19.98 kB / 0.5044 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004047/0.2266, allocations: 4.812 MB / 0.5091 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.2266, allocations: 3.938 kB / 0.5091 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/0.2289, allocations: 1.534 MB / 0.5106 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.2293, allocations: 215.9 kB / 0.5109 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.2294, allocations: 20 kB / 0.5109 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004217/0.2298, allocations: 27.97 kB / 0.5109 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.23, allocations: 56.42 kB / 0.511 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-05/0.2301, allocations: 23.98 kB / 0.511 GB, free: 4.418 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006754/0.2307, allocations: 0.5068 MB / 0.5115 GB, free: 3.914 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2307, allocations: 4 kB / 0.5115 GB, free: 3.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001015/0.2318, allocations: 264 kB / 0.5117 GB, free: 3.652 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (2,1,100.0%), (2,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.001007/0.2328, allocations: 440.5 kB / 0.5121 GB, free: 3.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002528/0.2353, allocations: 1.329 MB / 0.5134 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.2353, allocations: 0 / 0.5134 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.2365, allocations: 0.7858 MB / 0.5142 GB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009908/0.2375, allocations: 217 kB / 0.5144 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.242/0.4796, allocations: 2.657 MB / 0.517 GB, free: 70.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.4806, allocations: 1.143 MB / 0.5181 GB, free: 69.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008789/0.4815, allocations: 229 kB / 0.5183 GB, free: 69.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.4817, allocations: 71.86 kB / 0.5184 GB, free: 69.38 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4818, allocations: 3.094 kB / 0.5184 GB, free: 69.38 MB / 398.1 MB Notification: Performance of Templates: time 0.02932/0.5111, allocations: 14.55 MB / 0.5326 GB, free: 65.72 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches