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.001062/0.001062, allocations: 108.1 kB / 16.92 MB, free: 5.785 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.001005/0.001005, allocations: 191.3 kB / 17.85 MB, free: 5.16 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.396/1.396, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.171/0.171, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 68.14 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1136, allocations: 58.06 MB / 456.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01208/0.1257, allocations: 7.1 MB / 464 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.1366, allocations: 5.102 MB / 469.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.1377, allocations: 27.88 kB / 469.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01168/0.1494, allocations: 5.698 MB / 474.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.1507, allocations: 0.5092 MB / 475.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.152, allocations: 498 kB / 475.8 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002913/0.155, allocations: 2.257 MB / 478.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.1564, allocations: 0.9235 MB / 479 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.1576, allocations: 0.6072 MB / 479.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001235/0.1589, allocations: 0.7162 MB / 480.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000265/0.1592, allocations: 100 kB / 480.4 MB, free: 460 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006807/0.1598, allocations: 259.7 kB / 480.6 MB, free: 200 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005932/0.1604, allocations: 494.8 kB / 481.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009518/0.1614, allocations: 0.5753 MB / 481.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.1633, allocations: 1.53 MB / 483.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1633, allocations: 0 / 483.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1634, allocations: 0 / 483.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.229e-05/0.1634, allocations: 0 / 483.2 MB, free: 13.6 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.003476/0.1669, allocations: 1.452 MB / 484.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1669, allocations: 8.031 kB / 484.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006599/0.1676, allocations: 151.5 kB / 484.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.1692, allocations: 0.882 MB / 485.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.125e-05/0.1693, allocations: 61.98 kB / 485.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.1694, allocations: 87.98 kB / 485.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.1714, allocations: 1.229 MB / 487.1 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.697e-05/0.1715, allocations: 3.906 kB / 487.1 MB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.1716, allocations: 43.92 kB / 487.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002423/0.1718, allocations: 93.88 kB / 487.2 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.1737, allocations: 1.007 MB / 488.2 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007588/0.1813, allocations: 4.924 MB / 493.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009786/0.1824, allocations: 0.6536 MB / 493.8 MB, free: 2.602 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005865/0.183, allocations: 355.3 kB / 494.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.568e-05/0.183, allocations: 8.562 kB / 494.2 MB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006615/0.1837, allocations: 449.8 kB / 494.6 MB, free: 1.781 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.186e-06/0.1837, allocations: 0 / 494.6 MB, free: 1.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004929/0.1886, allocations: 2.715 MB / 497.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.1887, allocations: 111.4 kB / 497.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.1898, allocations: 0.7506 MB / 498.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.646e-05/0.1898, allocations: 37.7 kB / 498.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.1902, allocations: 0.4948 MB / 498.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002183/0.1904, allocations: 244.6 kB / 499 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002993/0.1907, allocations: 182.4 kB / 499.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.1909, allocations: 406.7 kB / 499.5 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005782/0.1915, allocations: 369.8 kB / 499.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008416/0.1924, allocations: 0.6617 MB / 0.4888 GB, free: 11.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.1938, allocations: 1.045 MB / 0.4899 GB, free: 10.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.1938, allocations: 4 kB / 0.4899 GB, free: 10.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00292/0.1967, allocations: 1.63 MB / 0.4914 GB, free: 8.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.1967, allocations: 8 kB / 0.4915 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.1968, allocations: 12 kB / 0.4915 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/0.1983, allocations: 482.3 kB / 0.4919 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006336/0.199, allocations: 175.7 kB / 0.4921 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009563/0.2085, allocations: 7.09 MB / 0.499 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008734/0.2094, allocations: 48.03 kB / 0.4991 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.2096, allocations: 47.98 kB / 0.4991 GB, free: 0.5273 MB / 382.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.0006453/0.2102, allocations: 345.5 kB / 0.4994 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.2104, allocations: 90.81 kB / 0.4995 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001975/0.2124, allocations: 1.118 MB / 0.5006 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2124, allocations: 4 kB / 0.5006 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.2125, allocations: 8 kB / 0.5006 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.2125, allocations: 3.984 kB / 0.5006 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00375/0.2162, allocations: 2.119 MB / 0.5027 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.2162, allocations: 4.125 kB / 0.5027 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007709/0.217, allocations: 123.8 kB / 0.5028 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005538/0.2176, allocations: 166.3 kB / 0.503 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.967e-05/0.2177, allocations: 23.98 kB / 0.503 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004146/0.2218, allocations: 4.804 MB / 0.5077 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.962e-06/0.2219, allocations: 7.969 kB / 0.5077 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.2242, allocations: 1.533 MB / 0.5092 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/0.2245, allocations: 211.9 kB / 0.5094 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.2247, allocations: 23.98 kB / 0.5094 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004686/0.2252, allocations: 31.97 kB / 0.5095 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.2253, allocations: 48.44 kB / 0.5095 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.854e-05/0.2254, allocations: 27.98 kB / 0.5095 GB, free: 5.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006539/0.226, allocations: 0.5068 MB / 0.51 GB, free: 4.648 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.226, allocations: 0 / 0.51 GB, free: 4.648 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009914/0.227, allocations: 268.1 kB / 0.5103 GB, free: 4.387 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.0009469/0.228, allocations: 429.1 kB / 0.5107 GB, free: 4.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002831/0.2308, allocations: 1.459 MB / 0.5121 GB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.2308, allocations: 0 / 0.5121 GB, free: 2.625 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.2321, allocations: 0.7807 MB / 0.5129 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.2331, allocations: 224.2 kB / 0.5131 GB, free: 1.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1787/0.4119, allocations: 2.683 MB / 0.5157 GB, free: 69.97 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007756/0.4127, allocations: 1.142 MB / 0.5168 GB, free: 69.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008943/0.4136, allocations: 231.3 kB / 0.517 GB, free: 69.26 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.4138, allocations: 70.27 kB / 0.5171 GB, free: 69.25 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4138, allocations: 0 / 0.5171 GB, free: 69.25 MB / 398.1 MB Notification: Performance of Templates: time 0.02802/0.4418, allocations: 14.55 MB / 0.5313 GB, free: 65.78 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches