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.001102/0.001102, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001277/0.001277, allocations: 168.7 kB / 24.91 MB, free: 9.156 MB / 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 0.9464/0.9464, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|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.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.16e-05/1.306e-05, allocations: 6.25 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007455/0.007468, allocations: 9.408 MB / 282.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005145/0.01261, allocations: 3.2 MB / 286.1 MB, free: 4.602 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008453/0.01346, allocations: 71.5 kB / 286.2 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.01468, allocations: 0.6868 MB / 286.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001655/0.01633, allocations: 0.8458 MB / 287.7 MB, free: 2.988 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005918/0.01693, allocations: 395.3 kB / 288.1 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1207/0.1376, allocations: 2.652 MB / 290.8 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001752/0.1394, allocations: 1.295 MB / 292.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002549/0.1419, allocations: 2.008 MB / 294.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001717/0.1436, allocations: 1.322 MB / 295.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005334/0.1442, allocations: 306.6 kB / 295.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006641/0.1448, allocations: 414.9 kB / 296.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005926/0.1454, allocations: 0.8992 MB / 297 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000775/0.1462, allocations: 0.954 MB / 297.9 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001866/0.1481, allocations: 2.254 MB / 300.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1481, allocations: 0.5 kB / 300.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1481, allocations: 1.547 kB / 300.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.74e-05/0.1481, allocations: 0.5 kB / 300.2 MB, free: 15.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.002595/0.1507, allocations: 2.665 MB / 302.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.1507, allocations: 13.06 kB / 302.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006372/0.1514, allocations: 383.5 kB / 303.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.1525, allocations: 1.073 MB / 304.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.681e-05/0.1526, allocations: 157.5 kB / 304.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/0.1528, allocations: 213.2 kB / 304.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.1543, allocations: 1.621 MB / 306.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/0.1543, allocations: 16.64 kB / 306.3 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.1544, allocations: 87.75 kB / 306.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.474e-05/0.1545, allocations: 101.2 kB / 306.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008399/0.1553, allocations: 0.6237 MB / 307.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004563/0.1599, allocations: 5.486 MB / 312.6 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006722/0.1606, allocations: 0.6586 MB / 313.3 MB, free: 8.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004522/0.161, allocations: 422.2 kB / 313.7 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/0.1611, allocations: 59.94 kB / 313.7 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.1612, allocations: 43.56 kB / 313.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of pre-optimization done (n=101): time 2.254e-06/0.1612, allocations: 0 / 313.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=116): time 0.003405/0.1646, allocations: 2.458 MB / 316.2 MB, free: 5.254 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.007e-05/0.1646, allocations: 68.41 kB / 316.3 MB, free: 5.176 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005274/0.1651, allocations: 0.9688 MB / 317.3 MB, free: 4.383 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.866e-05/0.1652, allocations: 45.7 kB / 317.3 MB, free: 4.332 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.1654, allocations: 0.8859 MB / 318.2 MB, free: 3.492 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.1655, allocations: 424.5 kB / 318.6 MB, free: 3.102 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002028/0.1657, allocations: 241.6 kB / 318.9 MB, free: 2.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.473e-05/0.1658, allocations: 364.2 kB / 319.2 MB, free: 2.551 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.166, allocations: 158.8 kB / 319.4 MB, free: 2.395 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.1662, allocations: 0.5308 MB / 319.9 MB, free: 1.742 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005503/0.1668, allocations: 0.848 MB / 320.8 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1668, allocations: 4 kB / 320.8 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001015/0.1678, allocations: 0.9858 MB / 321.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1678, allocations: 12 kB / 321.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1678, allocations: 8 kB / 321.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004488/0.1683, allocations: 231.6 kB / 322 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006097/0.1689, allocations: 308.8 kB / 322.3 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002698/0.1716, allocations: 4.727 MB / 327 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003961/0.172, allocations: 51.98 kB / 327.1 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.064e-05/0.172, allocations: 40 kB / 327.1 MB, free: 10.36 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.0003058/0.1724, allocations: 205.9 kB / 327.3 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.1725, allocations: 134.9 kB / 327.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.1735, allocations: 0.8452 MB / 328.3 MB, free: 9.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1735, allocations: 12 kB / 328.3 MB, free: 9.168 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.1735, allocations: 4 kB / 328.3 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1735, allocations: 3.984 kB / 328.3 MB, free: 9.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.1761, allocations: 2.376 MB / 330.7 MB, free: 7.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1761, allocations: 4 kB / 330.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004589/0.1766, allocations: 198.2 kB / 330.9 MB, free: 6.832 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005451/0.1771, allocations: 303.1 kB / 331.2 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.787e-05/0.1772, allocations: 27.98 kB / 331.2 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003084/0.1803, allocations: 5.926 MB / 337.1 MB, free: 308 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1803, allocations: 4 kB / 337.1 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.1816, allocations: 1.23 MB / 338.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.1818, allocations: 194.8 kB / 338.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.1819, allocations: 34.89 kB / 338.6 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.1822, allocations: 39.98 kB / 338.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.1824, allocations: 100 kB / 338.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.474e-05/0.1824, allocations: 31.98 kB / 338.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003647/0.1828, allocations: 482.4 kB / 339.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1828, allocations: 0 / 339.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009203/0.1837, allocations: 451.9 kB / 339.7 MB, free: 13.78 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.0002811/0.184, allocations: 186.8 kB / 339.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.1851, allocations: 1.132 MB / 341 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/0.1851, allocations: 16.5 kB / 341 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007778/0.1859, allocations: 0.9298 MB / 341.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008486/0.1868, allocations: 382.3 kB / 342.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00391/0.1907, allocations: 3.592 MB / 345.9 MB, free: 7.559 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.1911, allocations: 0.4895 MB / 346.4 MB, free: 7.039 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004222/0.1915, allocations: 192.7 kB / 346.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005818/0.1921, allocations: 380.8 kB / 346.9 MB, free: 6.473 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1921, allocations: 0 / 346.9 MB, free: 6.473 MB / 298.7 MB Notification: Performance of Templates: time 0.02808/0.2201, allocations: 23.76 MB / 370.7 MB, free: 15.17 MB / 330.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] 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","",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.3576280041597784]