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.001056/0.001056, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001631/0.001631, allocations: 145.1 kB / 24.54 MB, free: 32 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 1.063/1.063, allocations: 173.4 MB / 201.1 MB, free: 9.336 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 2.745e-06/2.745e-06, allocations: 4 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.602e-05, allocations: 6.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.008968/0.008994, allocations: 9.567 MB / 277.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005472/0.01447, allocations: 3.053 MB / 280.6 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.01582, allocations: 71.5 kB / 280.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.01766, allocations: 0.6519 MB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00256/0.02022, allocations: 0.8537 MB / 282.2 MB, free: 8.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009612/0.02118, allocations: 391.4 kB / 282.6 MB, free: 7.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002863/0.02404, allocations: 2.644 MB / 285.2 MB, free: 5.125 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001833/0.02587, allocations: 1.268 MB / 286.5 MB, free: 3.793 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002408/0.02828, allocations: 1.785 MB / 288.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.03004, allocations: 1.399 MB / 289.7 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003963/0.03044, allocations: 327.9 kB / 290 MB, free: 288 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1217/0.1521, allocations: 413.1 kB / 290.4 MB, free: 19.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001459/0.1536, allocations: 0.9425 MB / 291.3 MB, free: 19.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002124/0.1557, allocations: 0.9824 MB / 292.3 MB, free: 19.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003228/0.1589, allocations: 2.299 MB / 294.6 MB, free: 19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1589, allocations: 1.75 kB / 294.6 MB, free: 19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1589, allocations: 1.094 kB / 294.6 MB, free: 19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.44e-05/0.159, allocations: 0 / 294.6 MB, free: 19 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.004762/0.1638, allocations: 3.05 MB / 297.7 MB, free: 17.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1638, allocations: 14.77 kB / 297.7 MB, free: 17.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007259/0.1646, allocations: 479.4 kB / 298.2 MB, free: 17.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.1663, allocations: 1.428 MB / 299.6 MB, free: 17.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.1664, allocations: 158.5 kB / 299.7 MB, free: 17.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002609/0.1667, allocations: 216.7 kB / 300 MB, free: 17.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002838/0.1695, allocations: 1.731 MB / 301.7 MB, free: 16.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.299e-05/0.1696, allocations: 6.5 kB / 301.7 MB, free: 16.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.1697, allocations: 89.31 kB / 301.8 MB, free: 16.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.1698, allocations: 105.5 kB / 301.9 MB, free: 16.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.1715, allocations: 0.7928 MB / 302.7 MB, free: 16.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006855/0.1783, allocations: 7.007 MB / 309.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009968/0.1793, allocations: 0.6809 MB / 310.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006674/0.18, allocations: 0.4897 MB / 310.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001698/0.1802, allocations: 54.19 kB / 310.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.1802, allocations: 48.59 kB / 311 MB, free: 11.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.885e-06/0.1802, allocations: 3 kB / 311 MB, free: 11.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.004774/0.185, allocations: 3.153 MB / 314.1 MB, free: 10.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/0.185, allocations: 62.38 kB / 314.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000961/0.186, allocations: 1.176 MB / 315.3 MB, free: 9.312 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.39e-05/0.186, allocations: 45.7 kB / 315.4 MB, free: 9.262 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003745/0.1864, allocations: 1.135 MB / 316.5 MB, free: 8.117 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.1866, allocations: 438.6 kB / 317 MB, free: 7.695 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.1868, allocations: 264.4 kB / 317.2 MB, free: 7.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.287e-05/0.1869, allocations: 0.5394 MB / 317.8 MB, free: 6.883 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003281/0.1873, allocations: 223.8 kB / 318 MB, free: 6.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.1877, allocations: 0.7522 MB / 318.7 MB, free: 5.699 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008684/0.1886, allocations: 1.091 MB / 319.8 MB, free: 4.438 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1886, allocations: 4 kB / 319.8 MB, free: 4.434 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001524/0.1901, allocations: 1.336 MB / 321.2 MB, free: 3.156 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1901, allocations: 8 kB / 321.2 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1902, allocations: 12.88 kB / 321.2 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005174/0.1907, allocations: 253 kB / 321.4 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006001/0.1913, allocations: 321.5 kB / 321.7 MB, free: 2.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003235/0.1945, allocations: 6.619 MB / 328.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005273/0.195, allocations: 99.8 kB / 328.5 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.878e-05/0.1951, allocations: 55.98 kB / 328.5 MB, free: 11.5 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.0004959/0.1956, allocations: 247.2 kB / 328.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/0.1958, allocations: 197.9 kB / 328.9 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/0.1974, allocations: 1.088 MB / 330 MB, free: 9.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.1974, allocations: 12 kB / 330 MB, free: 9.969 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.1974, allocations: 4 kB / 330 MB, free: 9.965 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.1974, allocations: 11.91 kB / 330.1 MB, free: 9.953 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003778/0.2012, allocations: 3.007 MB / 333.1 MB, free: 6.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.2012, allocations: 4 kB / 333.1 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004746/0.2017, allocations: 202.5 kB / 333.3 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006121/0.2023, allocations: 298.8 kB / 333.6 MB, free: 6.398 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.571e-05/0.2024, allocations: 35.97 kB / 333.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004209/0.2066, allocations: 8.411 MB / 342 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2066, allocations: 4 kB / 342 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.2085, allocations: 1.602 MB / 343.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003929/0.2089, allocations: 278.9 kB / 343.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.209, allocations: 31.98 kB / 343.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.2094, allocations: 71.92 kB / 344 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.2096, allocations: 104 kB / 344.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.464e-05/0.2096, allocations: 43.98 kB / 344.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006834/0.2103, allocations: 0.6803 MB / 344.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2103, allocations: 0 / 344.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001156/0.2115, allocations: 460 kB / 345.3 MB, free: 10.2 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%), (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.0002818/0.2117, allocations: 196.6 kB / 345.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.2134, allocations: 1.482 MB / 346.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.2135, allocations: 0 / 346.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.2146, allocations: 1.269 MB / 348.2 MB, free: 7.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.2157, allocations: 380.4 kB / 348.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005264/0.2209, allocations: 3.807 MB / 352.4 MB, free: 2.953 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.2214, allocations: 0.5598 MB / 352.9 MB, free: 2.363 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005647/0.222, allocations: 288.5 kB / 353.2 MB, free: 2.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.2222, allocations: 104.5 kB / 353.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of SimCode: time 1.272e-06/0.2222, allocations: 0 / 353.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of Templates: time 0.02768/0.2499, allocations: 23.31 MB / 376.6 MB, free: 11.03 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.830572730861604]