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.001593/0.001593, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.001691/0.001691, allocations: 146.6 kB / 25.6 MB, free: 8.879 MB / 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.9346/0.9346, allocations: 173.4 MB / 202.2 MB, free: 8.289 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.513e-06/1.513e-06, allocations: 0 / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.723e-05/2.874e-05, allocations: 2.312 kB / 269.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.008259/0.008288, allocations: 9.303 MB / 278.5 MB, free: 428 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00473/0.01302, allocations: 3.036 MB / 281.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009694/0.01399, allocations: 71.5 kB / 281.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.01524, allocations: 0.6674 MB / 282.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001873/0.01711, allocations: 0.842 MB / 283.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007373/0.01785, allocations: 403.3 kB / 283.5 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002614/0.02047, allocations: 2.633 MB / 286.2 MB, free: 8.758 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.0219, allocations: 1.268 MB / 287.4 MB, free: 7.426 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002714/0.02461, allocations: 2.023 MB / 289.4 MB, free: 5.398 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001496/0.02611, allocations: 1.317 MB / 290.8 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004801/0.02659, allocations: 308 kB / 291.1 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005396/0.02713, allocations: 411.7 kB / 291.5 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005451/0.02767, allocations: 0.8997 MB / 292.4 MB, free: 2.473 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.02871, allocations: 0.951 MB / 293.3 MB, free: 1.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002487/0.0312, allocations: 2.25 MB / 295.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.0312, allocations: 0 / 295.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.0312, allocations: 0 / 295.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.167e-05/0.03128, allocations: 4 kB / 295.6 MB, free: 15.26 MB / 282.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.00336/0.03464, allocations: 2.898 MB / 298.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.03468, allocations: 8.031 kB / 298.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006094/0.03529, allocations: 483.1 kB / 299 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.03675, allocations: 1.38 MB / 300.3 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.826e-05/0.03684, allocations: 168.6 kB / 300.5 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001997/0.03704, allocations: 208.3 kB / 300.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002043/0.03908, allocations: 1.591 MB / 302.3 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.03913, allocations: 11.98 kB / 302.3 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.03924, allocations: 80 kB / 302.4 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.144e-05/0.03932, allocations: 104.2 kB / 302.5 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009356/0.04026, allocations: 0.6343 MB / 303.1 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006957/0.04722, allocations: 6.774 MB / 309.9 MB, free: 424 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008681/0.04808, allocations: 0.6561 MB / 310.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005857/0.04867, allocations: 453.3 kB / 311 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001369/0.04881, allocations: 40.98 kB / 311 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.47e-05/0.04884, allocations: 50.39 kB / 311.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=101): time 3.086e-06/0.04884, allocations: 0 / 311.1 MB, free: 15.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=116): time 0.004096/0.05294, allocations: 2.489 MB / 313.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.05297, allocations: 68.34 kB / 313.6 MB, free: 12.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008611/0.05383, allocations: 1.122 MB / 314.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.05388, allocations: 45.7 kB / 314.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005199/0.0544, allocations: 1.159 MB / 316 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004705/0.05487, allocations: 436.3 kB / 316.4 MB, free: 9.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.05513, allocations: 269 kB / 316.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.05529, allocations: 0.5471 MB / 317.2 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/0.05551, allocations: 163.9 kB / 317.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.05595, allocations: 0.7096 MB / 318.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007649/0.05672, allocations: 1.008 MB / 319.1 MB, free: 6.676 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.05673, allocations: 4 kB / 319.1 MB, free: 6.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001386/0.05811, allocations: 1.202 MB / 320.3 MB, free: 5.445 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.05813, allocations: 12 kB / 320.3 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.05814, allocations: 8 kB / 320.3 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004832/0.05863, allocations: 254.7 kB / 320.5 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.05922, allocations: 287.5 kB / 320.8 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003447/0.06266, allocations: 6.436 MB / 327.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004668/0.06313, allocations: 55.94 kB / 327.3 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.013e-05/0.06319, allocations: 47.98 kB / 327.4 MB, free: 14.01 MB / 314.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.0003834/0.06357, allocations: 248.1 kB / 327.6 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.06378, allocations: 195 kB / 327.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.06497, allocations: 0.9835 MB / 328.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.06497, allocations: 12 kB / 328.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.06498, allocations: 4 kB / 328.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.06499, allocations: 3.984 kB / 328.8 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003303/0.06829, allocations: 2.841 MB / 331.6 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.06829, allocations: 416 / 331.6 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.06872, allocations: 179.8 kB / 331.8 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005125/0.06923, allocations: 266.5 kB / 332.1 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.106e-05/0.06928, allocations: 35.98 kB / 332.1 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003859/0.07314, allocations: 8.153 MB / 340.3 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.07314, allocations: 11.94 kB / 340.3 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.07466, allocations: 1.441 MB / 341.7 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.07501, allocations: 246.8 kB / 342 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.07513, allocations: 35.98 kB / 342 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.0755, allocations: 47.92 kB / 342 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.07565, allocations: 104.7 kB / 342.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.07569, allocations: 24 kB / 342.2 MB, free: 14.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004995/0.07619, allocations: 0.6254 MB / 342.8 MB, free: 13.85 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.07619, allocations: 0 / 342.8 MB, free: 13.85 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001127/0.07732, allocations: 447.9 kB / 343.2 MB, free: 13.41 MB / 330.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.0002784/0.0776, allocations: 198.9 kB / 343.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.07926, allocations: 1.365 MB / 344.8 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.07926, allocations: 4 kB / 344.8 MB, free: 11.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009319/0.08019, allocations: 1.183 MB / 346 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009597/0.08115, allocations: 366.3 kB / 346.3 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004564/0.08571, allocations: 3.76 MB / 350.1 MB, free: 6.305 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.08616, allocations: 0.5597 MB / 350.7 MB, free: 5.719 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005238/0.08669, allocations: 200.7 kB / 350.8 MB, free: 5.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005946/0.08728, allocations: 426 kB / 351.3 MB, free: 5.098 MB / 330.7 MB Notification: Performance of SimCode: time 1.502e-06/0.08728, allocations: 0 / 351.3 MB, free: 5.098 MB / 330.7 MB Notification: Performance of Templates: time 0.126/0.2133, allocations: 24.13 MB / 375.4 MB, free: 74.5 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.6595264077186584]