Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002308/0.002308, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.513/1.513, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.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.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.505e-05/2.661e-05, allocations: 2.312 kB / 272.3 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.0138/0.01383, allocations: 8.58 MB / 280.9 MB, free: 9.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006695/0.02052, allocations: 2.991 MB / 283.9 MB, free: 6.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00138/0.0219, allocations: 71.5 kB / 284 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002198/0.0241, allocations: 0.6674 MB / 284.6 MB, free: 5.438 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002938/0.02704, allocations: 0.8459 MB / 285.5 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.0283, allocations: 399.3 kB / 285.9 MB, free: 4.195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004412/0.03271, allocations: 2.645 MB / 288.5 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00256/0.03527, allocations: 1.26 MB / 289.8 MB, free: 220 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1166/0.1519, allocations: 1.771 MB / 291.6 MB, free: 16.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002218/0.1541, allocations: 1.3 MB / 292.9 MB, free: 16.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006669/0.1547, allocations: 317.2 kB / 293.2 MB, free: 16.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009719/0.1557, allocations: 422.1 kB / 293.6 MB, free: 16.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008411/0.1565, allocations: 0.9326 MB / 294.5 MB, free: 16.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001135/0.1577, allocations: 0.9722 MB / 295.5 MB, free: 16.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00497/0.1627, allocations: 4.231 MB / 299.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.1627, allocations: 1.188 kB / 299.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1627, allocations: 3.719 kB / 299.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.1628, allocations: 0 / 299.7 MB, free: 15.86 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.006223/0.169, allocations: 2.878 MB / 302.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.169, allocations: 9.219 kB / 302.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.1702, allocations: 486.2 kB / 303.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002534/0.1728, allocations: 1.536 MB / 304.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.1729, allocations: 158.6 kB / 304.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002894/0.1732, allocations: 216 kB / 305 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004075/0.1772, allocations: 2.895 MB / 307.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.403e-05/0.1773, allocations: 12.5 kB / 307.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001931/0.1775, allocations: 81.25 kB / 308 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.609e-05/0.1776, allocations: 105.1 kB / 308.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00358/0.1811, allocations: 2.35 MB / 310.4 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.1922, allocations: 7.517 MB / 317.9 MB, free: 2.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.194, allocations: 1.177 MB / 319.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/0.1955, allocations: 0.9021 MB / 320 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002284/0.1957, allocations: 60.97 kB / 320.1 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.1957, allocations: 43.56 kB / 320.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.825e-06/0.1957, allocations: 0 / 320.1 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.01507/0.2108, allocations: 5.737 MB / 325.9 MB, free: 10.76 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.2108, allocations: 76.25 kB / 325.9 MB, free: 10.68 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/0.2134, allocations: 1.305 MB / 327.2 MB, free: 9.363 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001617/0.2135, allocations: 45.7 kB / 327.3 MB, free: 9.312 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.2146, allocations: 1.073 MB / 328.4 MB, free: 8.234 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004993/0.215, allocations: 429 kB / 328.8 MB, free: 7.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000545/0.2156, allocations: 251.5 kB / 329 MB, free: 7.566 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002268/0.2158, allocations: 357.9 kB / 329.4 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.2172, allocations: 0.691 MB / 330.1 MB, free: 6.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/0.2189, allocations: 1.077 MB / 331.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003428/0.2224, allocations: 1.864 MB / 333 MB, free: 3.312 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.2224, allocations: 4 kB / 333 MB, free: 3.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004954/0.2273, allocations: 2.393 MB / 335.4 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.2273, allocations: 8 kB / 335.4 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.372e-05/0.2274, allocations: 15.89 kB / 335.4 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.2287, allocations: 454 kB / 335.9 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.23, allocations: 336.1 kB / 336.2 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008751/0.2388, allocations: 6.631 MB / 342.8 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.2402, allocations: 107.8 kB / 342.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002172/0.2404, allocations: 56 kB / 343 MB, free: 9.156 MB / 298.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.001563/0.242, allocations: 0.6898 MB / 343.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006584/0.2427, allocations: 195 kB / 343.9 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004602/0.2473, allocations: 2.033 MB / 345.9 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.2473, allocations: 16 kB / 345.9 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.2473, allocations: 6.938 kB / 345.9 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.2473, allocations: 11.91 kB / 345.9 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008978/0.2563, allocations: 3.947 MB / 349.9 MB, free: 2.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.2563, allocations: 4 kB / 349.9 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009833/0.2573, allocations: 202.5 kB / 350.1 MB, free: 2.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/0.2588, allocations: 490.1 kB / 350.6 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.2589, allocations: 31.98 kB / 350.6 MB, free: 1.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.2692, allocations: 8.081 MB / 358.7 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.2692, allocations: 7.562 kB / 358.7 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006377/0.2756, allocations: 3.05 MB / 361.7 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009208/0.2765, allocations: 290.9 kB / 362 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004618/0.277, allocations: 31.98 kB / 362 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.2781, allocations: 83.91 kB / 362.1 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002647/0.2784, allocations: 100.3 kB / 362.2 MB, free: 5.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.2785, allocations: 39.98 kB / 362.3 MB, free: 5.457 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001811/0.2803, allocations: 0.8798 MB / 363.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2803, allocations: 0 / 363.1 MB, free: 4.574 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002075/0.2823, allocations: 459.9 kB / 363.6 MB, free: 4.125 MB / 314.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.0004618/0.2828, allocations: 200.5 kB / 363.8 MB, free: 3.934 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004412/0.2872, allocations: 2.092 MB / 365.9 MB, free: 1.852 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.2872, allocations: 0 / 365.9 MB, free: 1.852 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002794/0.29, allocations: 1.384 MB / 367.3 MB, free: 448 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.2921, allocations: 390.7 kB / 367.6 MB, free: 76 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009364/0.3015, allocations: 4.382 MB / 372 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002068/0.3035, allocations: 1.238 MB / 373.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001302/0.3048, allocations: 348.5 kB / 373.6 MB, free: 9.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004625/0.3053, allocations: 112.5 kB / 373.7 MB, free: 9.887 MB / 330.7 MB Notification: Performance of SimCode: time 1.633e-06/0.3053, allocations: 0 / 373.7 MB, free: 9.887 MB / 330.7 MB Notification: Performance of Templates: time 0.04753/0.3528, allocations: 23.35 MB / 397.1 MB, free: 2.922 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.739461641991511]