Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9995/0.9995, allocations: 173.4 MB / 201.1 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 3.938 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.389e-05/1.507e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008412/0.008427, allocations: 10.24 MB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005022/0.01345, allocations: 3.365 MB / 281.6 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007415/0.01419, allocations: 75.5 kB / 281.7 MB, free: 8.691 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.01543, allocations: 0.7568 MB / 282.4 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001497/0.01693, allocations: 0.9274 MB / 283.4 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006213/0.01755, allocations: 427.2 kB / 283.8 MB, free: 6.578 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002067/0.01962, allocations: 2.847 MB / 286.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.02084, allocations: 1.317 MB / 288 MB, free: 2.336 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001789/0.02263, allocations: 2.148 MB / 290.1 MB, free: 188 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1177/0.1403, allocations: 1.374 MB / 291.5 MB, free: 17.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.1413, allocations: 323.2 kB / 291.8 MB, free: 17.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.1424, allocations: 420.6 kB / 292.2 MB, free: 17.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007991/0.1432, allocations: 0.9446 MB / 293.1 MB, free: 17.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001823/0.145, allocations: 1.019 MB / 294.2 MB, free: 17.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002976/0.148, allocations: 2.367 MB / 296.5 MB, free: 17.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.148, allocations: 1.094 kB / 296.5 MB, free: 17.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.148, allocations: 0.9688 kB / 296.5 MB, free: 17.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.762e-05/0.148, allocations: 0.6562 kB / 296.5 MB, free: 17.46 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.004288/0.1523, allocations: 3.145 MB / 299.7 MB, free: 16.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1524, allocations: 9.797 kB / 299.7 MB, free: 16.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007615/0.1531, allocations: 0.4992 MB / 300.2 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.1549, allocations: 1.556 MB / 301.7 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-05/0.155, allocations: 165.9 kB / 301.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002423/0.1552, allocations: 223 kB / 302.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.1575, allocations: 1.808 MB / 303.9 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.556e-05/0.1576, allocations: 11.52 kB / 303.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.1577, allocations: 88.92 kB / 304 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.847e-05/0.1578, allocations: 114 kB / 304.1 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001434/0.1592, allocations: 0.8259 MB / 305 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006431/0.1657, allocations: 7.348 MB / 312.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.1667, allocations: 0.7195 MB / 313 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000733/0.1674, allocations: 0.5061 MB / 313.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001782/0.1676, allocations: 53.39 kB / 313.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.1676, allocations: 45.89 kB / 313.6 MB, free: 9.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 4.208e-06/0.1676, allocations: 2.844 kB / 313.6 MB, free: 9.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004941/0.1726, allocations: 3.23 MB / 316.9 MB, free: 7.055 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.1726, allocations: 72.34 kB / 316.9 MB, free: 6.969 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.1737, allocations: 1.267 MB / 318.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.663e-05/0.1737, allocations: 45.7 kB / 318.3 MB, free: 5.621 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004299/0.1742, allocations: 1.217 MB / 319.5 MB, free: 4.398 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.1744, allocations: 454.5 kB / 319.9 MB, free: 3.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.1746, allocations: 277.1 kB / 320.2 MB, free: 3.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.224e-05/0.1747, allocations: 476.8 kB / 320.6 MB, free: 3.211 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.175, allocations: 231.8 kB / 320.9 MB, free: 2.984 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005027/0.1755, allocations: 0.8373 MB / 321.7 MB, free: 1.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009764/0.1765, allocations: 1.181 MB / 322.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1765, allocations: 4 kB / 322.9 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001857/0.1783, allocations: 1.422 MB / 324.3 MB, free: 15.17 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.1784, allocations: 10.81 kB / 324.3 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.1784, allocations: 16 kB / 324.3 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005755/0.179, allocations: 262.9 kB / 324.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/0.1796, allocations: 332.9 kB / 324.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003842/0.1835, allocations: 6.653 MB / 331.6 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005671/0.184, allocations: 87.88 kB / 331.7 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-05/0.1841, allocations: 60 kB / 331.7 MB, free: 7.465 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005036/0.1846, allocations: 250.5 kB / 332 MB, free: 7.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.1849, allocations: 211 kB / 332.2 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.1864, allocations: 1.124 MB / 333.3 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.1864, allocations: 23.95 kB / 333.3 MB, free: 5.859 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.1864, allocations: 4 kB / 333.3 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.976e-06/0.1864, allocations: 3.984 kB / 333.3 MB, free: 5.852 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003852/0.1903, allocations: 3.108 MB / 336.4 MB, free: 2.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.1903, allocations: 4 kB / 336.4 MB, free: 2.676 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005131/0.1908, allocations: 202.8 kB / 336.6 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006417/0.1914, allocations: 291.3 kB / 336.9 MB, free: 2.195 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.82e-05/0.1915, allocations: 31.98 kB / 337 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004931/0.1964, allocations: 8.377 MB / 345.3 MB, free: 9.355 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1965, allocations: 4 kB / 345.3 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001916/0.1984, allocations: 1.677 MB / 347 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003617/0.1987, allocations: 282.7 kB / 347.3 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001228/0.1989, allocations: 35.98 kB / 347.3 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.1993, allocations: 63.94 kB / 347.4 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.1994, allocations: 108.4 kB / 347.5 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.1995, allocations: 43.98 kB / 347.5 MB, free: 7.074 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007728/0.2003, allocations: 0.7346 MB / 348.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2003, allocations: 0 / 348.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001281/0.2015, allocations: 475.9 kB / 348.7 MB, free: 5.875 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003132/0.2019, allocations: 198 kB / 348.9 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.2035, allocations: 1.519 MB / 350.4 MB, free: 4.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2035, allocations: 0 / 350.4 MB, free: 4.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.2048, allocations: 1.258 MB / 351.7 MB, free: 2.863 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.2059, allocations: 429.3 kB / 352.1 MB, free: 2.461 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005173/0.2111, allocations: 4.015 MB / 356.1 MB, free: 14.35 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/0.2116, allocations: 0.5926 MB / 356.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006667/0.2123, allocations: 305.7 kB / 357 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.2125, allocations: 116.5 kB / 357.1 MB, free: 13.31 MB / 314.7 MB Notification: Performance of SimCode: time 1.563e-06/0.2125, allocations: 0 / 357.1 MB, free: 13.31 MB / 314.7 MB Notification: Performance of Templates: time 0.03289/0.2454, allocations: 25.61 MB / 382.7 MB, free: 4.109 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4669094551354647]