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.001417/0.001417, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001611/0.001611, allocations: 192 kB / 18.63 MB, free: 4.375 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.383/1.383, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1768/0.1768, allocations: 38.05 MB / 330.5 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002226, allocations: 66.09 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.13, allocations: 58.06 MB / 458.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008486/0.1385, allocations: 7.096 MB / 465.4 MB, free: 192 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007096/0.1456, allocations: 5.094 MB / 470.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000537/0.1462, allocations: 31.81 kB / 470.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009656/0.1558, allocations: 5.71 MB / 476.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001344/0.1572, allocations: 0.5092 MB / 476.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.1585, allocations: 0.4944 MB / 477.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.1611, allocations: 2.249 MB / 479.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.1625, allocations: 0.9274 MB / 480.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.1635, allocations: 0.6072 MB / 481.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.1648, allocations: 0.7124 MB / 481.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002101/0.165, allocations: 100 kB / 481.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006978/0.1657, allocations: 255.7 kB / 482.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006351/0.1664, allocations: 494.8 kB / 482.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007756/0.1672, allocations: 0.587 MB / 483.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.1692, allocations: 1.542 MB / 484.7 MB, free: 12.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1693, allocations: 4 kB / 484.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1693, allocations: 0 / 484.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.97e-05/0.1693, allocations: 4 kB / 484.7 MB, free: 12.82 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.004072/0.1734, allocations: 1.448 MB / 486.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.1735, allocations: 8.031 kB / 486.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009918/0.1745, allocations: 155.5 kB / 486.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002463/0.1769, allocations: 0.921 MB / 487.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.045e-05/0.177, allocations: 58 kB / 487.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002179/0.1773, allocations: 87.98 kB / 487.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/0.1798, allocations: 1.227 MB / 488.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.317e-05/0.1799, allocations: 11.91 kB / 488.6 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.18, allocations: 28 kB / 488.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003158/0.1803, allocations: 89.94 kB / 488.8 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0025/0.1829, allocations: 1.011 MB / 489.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.1942, allocations: 4.889 MB / 494.7 MB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.196, allocations: 0.6537 MB / 495.3 MB, free: 1.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009821/0.197, allocations: 355.3 kB / 495.7 MB, free: 1.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.509e-05/0.1971, allocations: 12.56 kB / 495.7 MB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001148/0.1982, allocations: 453.7 kB / 496.1 MB, free: 1.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.667e-06/0.1983, allocations: 3.938 kB / 496.1 MB, free: 1 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.008149/0.2064, allocations: 2.708 MB / 498.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.2065, allocations: 115.4 kB / 498.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.2081, allocations: 0.7545 MB / 499.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.57e-05/0.2082, allocations: 37.7 kB / 499.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005506/0.2088, allocations: 498.7 kB / 0.4885 GB, free: 12.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003218/0.2091, allocations: 240.6 kB / 0.4887 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004452/0.2096, allocations: 182.5 kB / 0.4889 GB, free: 12.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002555/0.2098, allocations: 398.7 kB / 0.4893 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.2109, allocations: 377.8 kB / 0.4896 GB, free: 11.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.2122, allocations: 0.65 MB / 0.4903 GB, free: 10.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.2146, allocations: 1.057 MB / 0.4913 GB, free: 9.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.2147, allocations: 0 / 0.4913 GB, free: 9.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00536/0.22, allocations: 1.63 MB / 0.4929 GB, free: 7.898 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.2201, allocations: 12 kB / 0.4929 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/0.2201, allocations: 8 kB / 0.4929 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002745/0.2229, allocations: 490.3 kB / 0.4934 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.2241, allocations: 167.7 kB / 0.4935 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/0.2417, allocations: 7.085 MB / 0.5005 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.243, allocations: 44.03 kB / 0.5005 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002123/0.2433, allocations: 43.98 kB / 0.5005 GB, free: 15.77 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.0009776/0.2443, allocations: 357.4 kB / 0.5009 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/0.2446, allocations: 86.88 kB / 0.501 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00348/0.2481, allocations: 1.121 MB / 0.5021 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.2481, allocations: 8 kB / 0.5021 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/0.2482, allocations: 0 / 0.5021 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.2482, allocations: 3.984 kB / 0.5021 GB, free: 14.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006216/0.2544, allocations: 2.123 MB / 0.5042 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.2544, allocations: 4.125 kB / 0.5042 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.2556, allocations: 123.8 kB / 0.5043 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008069/0.2564, allocations: 166.5 kB / 0.5044 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.165e-05/0.2565, allocations: 19.98 kB / 0.5045 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005442/0.262, allocations: 4.805 MB / 0.5091 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.262, allocations: 4.031 kB / 0.5091 GB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003016/0.265, allocations: 1.534 MB / 0.5106 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004482/0.2655, allocations: 211.9 kB / 0.5108 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.2657, allocations: 23.98 kB / 0.5109 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000495/0.2662, allocations: 27.98 kB / 0.5109 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.2663, allocations: 60.36 kB / 0.511 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-05/0.2664, allocations: 23.98 kB / 0.511 GB, free: 4.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007257/0.2671, allocations: 0.5068 MB / 0.5115 GB, free: 3.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2671, allocations: 0 / 0.5115 GB, free: 3.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001177/0.2683, allocations: 268 kB / 0.5117 GB, free: 3.621 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.001111/0.2694, allocations: 435 kB / 0.5121 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002731/0.2722, allocations: 1.325 MB / 0.5134 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.2722, allocations: 4 kB / 0.5134 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.2734, allocations: 0.7819 MB / 0.5142 GB, free: 1.168 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.2745, allocations: 215 kB / 0.5144 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1899/0.4644, allocations: 2.663 MB / 0.517 GB, free: 70.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008159/0.4653, allocations: 1.145 MB / 0.5181 GB, free: 69.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007579/0.466, allocations: 233.9 kB / 0.5184 GB, free: 69.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.4663, allocations: 68.75 kB / 0.5184 GB, free: 69.39 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4663, allocations: 0 / 0.5184 GB, free: 69.39 MB / 398.1 MB Notification: Performance of Templates: time 0.02511/0.4914, allocations: 14.55 MB / 0.5326 GB, free: 65.68 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 gbode -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