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.001444/0.001444, allocations: 110.2 kB / 16.51 MB, free: 6.715 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.00171/0.001711, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.568/1.568, allocations: 222.9 MB / 241.1 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1731/0.1731, allocations: 38.03 MB / 329.3 MB, free: 9.055 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 62.03 kB / 398.1 MB, free: 34.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 58.06 MB / 456.2 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01113/0.1274, allocations: 8.347 MB / 464.5 MB, free: 136 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009211/0.1367, allocations: 5.633 MB / 470.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001516/0.1382, allocations: 51.69 kB / 470.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.1488, allocations: 5.661 MB / 475.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001605/0.1504, allocations: 497.9 kB / 476.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.1519, allocations: 451.3 kB / 476.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004216/0.1561, allocations: 2.959 MB / 479.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00148/0.1576, allocations: 0.783 MB / 480.5 MB, free: 68 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.1588, allocations: 0.5173 MB / 481 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001473/0.1603, allocations: 0.7396 MB / 481.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002849/0.1606, allocations: 56 kB / 481.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007228/0.1614, allocations: 231.7 kB / 482.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005317/0.1619, allocations: 450.8 kB / 482.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008746/0.1628, allocations: 0.5323 MB / 483 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001887/0.1647, allocations: 1.499 MB / 484.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1647, allocations: 0 / 484.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1647, allocations: 0 / 484.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.27e-05/0.1648, allocations: 0 / 484.5 MB, free: 12.04 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.003854/0.1686, allocations: 1.46 MB / 486 MB, free: 10.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1687, allocations: 8.031 kB / 486 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006682/0.1694, allocations: 151.4 kB / 486.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.171, allocations: 0.8704 MB / 487 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.457e-05/0.1711, allocations: 61.98 kB / 487.1 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/0.1713, allocations: 91.89 kB / 487.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.1733, allocations: 1.235 MB / 488.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.1733, allocations: 3.938 kB / 488.4 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.851e-05/0.1734, allocations: 35.98 kB / 488.4 MB, free: 7.965 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000255/0.1737, allocations: 89.94 kB / 488.5 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001994/0.1757, allocations: 1.003 MB / 489.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00757/0.1833, allocations: 4.924 MB / 494.5 MB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.1844, allocations: 0.6459 MB / 495.1 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.185, allocations: 359.2 kB / 495.5 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.429e-05/0.1851, allocations: 20.53 kB / 495.5 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006874/0.1858, allocations: 441.8 kB / 495.9 MB, free: 232 kB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.955e-06/0.1858, allocations: 0 / 495.9 MB, free: 232 kB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.00619/0.192, allocations: 2.727 MB / 498.6 MB, free: 13.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.1922, allocations: 107.4 kB / 498.7 MB, free: 13.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/0.1935, allocations: 0.7507 MB / 499.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.007e-05/0.1936, allocations: 37.7 kB / 499.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004004/0.194, allocations: 0.4986 MB / 0.4883 GB, free: 11.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.1942, allocations: 240.6 kB / 0.4885 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/0.1945, allocations: 178.5 kB / 0.4887 GB, free: 11.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.1947, allocations: 402.8 kB / 0.4891 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006514/0.1954, allocations: 369.8 kB / 0.4894 GB, free: 10.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.1965, allocations: 0.6578 MB / 0.4901 GB, free: 9.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.1984, allocations: 1.057 MB / 0.4911 GB, free: 8.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.1985, allocations: 4 kB / 0.4911 GB, free: 8.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003473/0.2019, allocations: 1.619 MB / 0.4927 GB, free: 7.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.202, allocations: 11.94 kB / 0.4927 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/0.202, allocations: 12 kB / 0.4927 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001689/0.2037, allocations: 477.8 kB / 0.4932 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000677/0.2044, allocations: 179.7 kB / 0.4934 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01015/0.2146, allocations: 6.51 MB / 0.4997 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008348/0.2154, allocations: 48.03 kB / 0.4998 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.2156, allocations: 47.98 kB / 0.4998 GB, free: 15.57 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.00066/0.2163, allocations: 349.4 kB / 0.5001 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000212/0.2165, allocations: 90.81 kB / 0.5002 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/0.2185, allocations: 1.118 MB / 0.5013 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.016e-06/0.2185, allocations: 8 kB / 0.5013 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2185, allocations: 0 / 0.5013 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.2185, allocations: 7.984 kB / 0.5013 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003787/0.2223, allocations: 2.111 MB / 0.5034 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.2224, allocations: 4 kB / 0.5034 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008199/0.2232, allocations: 123.8 kB / 0.5035 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005815/0.2238, allocations: 158.5 kB / 0.5037 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-05/0.2239, allocations: 27.98 kB / 0.5037 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004347/0.2282, allocations: 4.466 MB / 0.5081 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.2282, allocations: 3.938 kB / 0.5081 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.2307, allocations: 1.533 MB / 0.5096 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003749/0.2311, allocations: 204 kB / 0.5097 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.2313, allocations: 23.98 kB / 0.5098 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000497/0.2318, allocations: 31.92 kB / 0.5098 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.2319, allocations: 56.42 kB / 0.5099 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.383e-05/0.232, allocations: 23.98 kB / 0.5099 GB, free: 4.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007466/0.2327, allocations: 0.5107 MB / 0.5104 GB, free: 4.062 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2327, allocations: 0 / 0.5104 GB, free: 4.062 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00106/0.2338, allocations: 264.1 kB / 0.5106 GB, free: 3.805 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.0009974/0.2348, allocations: 428.7 kB / 0.511 GB, free: 3.527 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.2374, allocations: 1.314 MB / 0.5123 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2374, allocations: 1.438 kB / 0.5123 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.2387, allocations: 0.7922 MB / 0.5131 GB, free: 1.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.2398, allocations: 203 kB / 0.5133 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.206/0.4458, allocations: 3.045 MB / 0.5163 GB, free: 69.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007092/0.4466, allocations: 1.145 MB / 0.5174 GB, free: 69.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008335/0.4474, allocations: 231.9 kB / 0.5176 GB, free: 69.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.4476, allocations: 69.22 kB / 0.5177 GB, free: 69.04 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4476, allocations: 0 / 0.5177 GB, free: 69.04 MB / 398.1 MB Notification: Performance of Templates: time 0.02571/0.4733, allocations: 13.94 MB / 0.5313 GB, free: 65.75 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