Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001479/0.001479, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.001114/0.001114, allocations: 141.1 kB / 24.54 MB, free: 28 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.9045/0.9045, allocations: 173.3 MB / 201.1 MB, free: 9.309 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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.599e-05/2.74e-05, allocations: 6.25 kB / 268 MB, free: 6.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.008046/0.008074, allocations: 9.569 MB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004485/0.01256, allocations: 3.053 MB / 280.6 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008555/0.01341, allocations: 71.5 kB / 280.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.01486, allocations: 0.6675 MB / 281.4 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001707/0.01657, allocations: 0.8497 MB / 282.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007299/0.0173, allocations: 391.4 kB / 282.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.01948, allocations: 2.633 MB / 285.2 MB, free: 5.098 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.0209, allocations: 1.276 MB / 286.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00285/0.02375, allocations: 2.027 MB / 288.5 MB, free: 1.727 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.02542, allocations: 1.309 MB / 289.8 MB, free: 424 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006899/0.02611, allocations: 304 kB / 290.1 MB, free: 120 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1145/0.1406, allocations: 405.6 kB / 290.5 MB, free: 18.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001217/0.1418, allocations: 0.9005 MB / 291.4 MB, free: 18.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002327/0.1442, allocations: 0.9566 MB / 292.4 MB, free: 18.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003465/0.1476, allocations: 2.248 MB / 294.6 MB, free: 18.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1476, allocations: 2.531 kB / 294.6 MB, free: 18.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1476, allocations: 0 / 294.6 MB, free: 18.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001097/0.1477, allocations: 0.6875 kB / 294.6 MB, free: 18.3 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005673/0.1534, allocations: 2.983 MB / 297.6 MB, free: 17.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.1535, allocations: 10.81 kB / 297.6 MB, free: 17.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.1545, allocations: 479 kB / 298.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/0.1574, allocations: 1.453 MB / 299.6 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.1576, allocations: 159.7 kB / 299.7 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002783/0.1578, allocations: 209.4 kB / 299.9 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003234/0.1611, allocations: 1.726 MB / 301.6 MB, free: 16.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.884e-05/0.1611, allocations: 13.77 kB / 301.7 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/0.1613, allocations: 83.39 kB / 301.7 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.1614, allocations: 107.7 kB / 301.8 MB, free: 16.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.1631, allocations: 0.7829 MB / 302.6 MB, free: 16.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007509/0.1706, allocations: 6.879 MB / 309.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.1718, allocations: 0.7185 MB / 310.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008254/0.1726, allocations: 0.4982 MB / 310.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001738/0.1728, allocations: 53.72 kB / 310.8 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.1729, allocations: 51.33 kB / 310.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.986e-06/0.1729, allocations: 4 kB / 310.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.005819/0.1787, allocations: 3.076 MB / 313.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.1787, allocations: 62.19 kB / 314 MB, free: 10.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.1799, allocations: 1.155 MB / 315.1 MB, free: 9.355 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.956e-05/0.1799, allocations: 53.69 kB / 315.2 MB, free: 9.297 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004584/0.1804, allocations: 1.135 MB / 316.3 MB, free: 8.152 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002056/0.1806, allocations: 439 kB / 316.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002754/0.1809, allocations: 257.2 kB / 317 MB, free: 7.469 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.978e-05/0.181, allocations: 0.5355 MB / 317.5 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000395/0.1813, allocations: 223.8 kB / 317.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000545/0.1819, allocations: 0.7536 MB / 318.5 MB, free: 5.742 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.183, allocations: 1.088 MB / 319.6 MB, free: 4.484 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.183, allocations: 4 kB / 319.6 MB, free: 4.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001951/0.185, allocations: 1.326 MB / 320.9 MB, free: 3.211 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.185, allocations: 12.25 kB / 320.9 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.185, allocations: 12 kB / 320.9 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006298/0.1856, allocations: 248.9 kB / 321.2 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007768/0.1864, allocations: 313.5 kB / 321.5 MB, free: 2.645 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004046/0.1904, allocations: 6.612 MB / 328.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007336/0.1912, allocations: 83.88 kB / 328.2 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.955e-05/0.1913, allocations: 59.94 kB / 328.2 MB, free: 11.58 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.0005725/0.1918, allocations: 252.7 kB / 328.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000259/0.1921, allocations: 187.1 kB / 328.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/0.1941, allocations: 1.079 MB / 329.7 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.1941, allocations: 12 kB / 329.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1941, allocations: 4 kB / 329.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.1941, allocations: 11.97 kB / 329.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004559/0.1987, allocations: 2.951 MB / 332.7 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.1987, allocations: 6.844 kB / 332.7 MB, free: 7.035 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006026/0.1993, allocations: 195.5 kB / 332.9 MB, free: 6.852 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000743/0.2, allocations: 278.8 kB / 333.2 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.989e-05/0.2001, allocations: 39.92 kB / 333.2 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005125/0.2052, allocations: 8.325 MB / 341.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.2052, allocations: 4 kB / 341.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.2076, allocations: 1.599 MB / 343.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005066/0.2081, allocations: 270.9 kB / 343.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.2082, allocations: 28 kB / 343.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/0.2087, allocations: 63.94 kB / 343.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.2089, allocations: 100.1 kB / 343.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.234e-05/0.209, allocations: 35.98 kB / 343.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001082/0.2101, allocations: 0.6764 MB / 344.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2101, allocations: 0 / 344.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001482/0.2115, allocations: 451.9 kB / 344.8 MB, free: 10.49 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.0003269/0.2119, allocations: 191.1 kB / 345 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002026/0.2139, allocations: 1.471 MB / 346.4 MB, free: 8.824 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.2139, allocations: 4 kB / 346.4 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.2152, allocations: 1.23 MB / 347.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.2164, allocations: 367.1 kB / 348 MB, free: 7.195 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005961/0.2224, allocations: 3.8 MB / 351.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005261/0.2229, allocations: 0.552 MB / 352.4 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006914/0.2236, allocations: 292.5 kB / 352.7 MB, free: 2.441 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002597/0.2239, allocations: 108.5 kB / 352.8 MB, free: 2.336 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.2239, allocations: 4 kB / 352.8 MB, free: 2.332 MB / 298.7 MB Notification: Performance of Templates: time 0.03683/0.2607, allocations: 23.23 MB / 376 MB, free: 11.47 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_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.4679534840397537]