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.0009832/0.0009832, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.001045/0.001045, allocations: 166.3 kB / 25.61 MB, free: 8.898 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.9269/0.9269, allocations: 177.1 MB / 206 MB, free: 4.496 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.663e-06/1.663e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.319e-05, allocations: 2.312 kB / 274.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007443/0.007466, allocations: 9.341 MB / 283.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003547/0.01101, allocations: 3.09 MB / 286.6 MB, free: 7.945 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005191/0.01153, allocations: 67.56 kB / 286.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009414/0.01247, allocations: 0.6674 MB / 287.4 MB, free: 7.207 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001331/0.0138, allocations: 0.8459 MB / 288.2 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004358/0.01424, allocations: 411.3 kB / 288.6 MB, free: 5.953 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.01577, allocations: 2.641 MB / 291.3 MB, free: 3.301 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.01706, allocations: 1.268 MB / 292.5 MB, free: 1.969 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.01856, allocations: 2.027 MB / 294.6 MB, free: 15.94 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.01961, allocations: 1.321 MB / 295.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002501/0.01986, allocations: 312 kB / 296.2 MB, free: 14.31 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004225/0.02028, allocations: 411.7 kB / 296.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005054/0.02079, allocations: 0.8997 MB / 297.5 MB, free: 13 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006474/0.02143, allocations: 0.9627 MB / 298.4 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001814/0.02325, allocations: 2.247 MB / 300.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.02325, allocations: 0 / 300.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.02325, allocations: 0 / 300.7 MB, free: 9.785 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.847e-05/0.02327, allocations: 0 / 300.7 MB, free: 9.785 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.002706/0.02598, allocations: 2.918 MB / 303.6 MB, free: 6.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.02601, allocations: 8.031 kB / 303.6 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009183/0.02693, allocations: 483.2 kB / 304.1 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.02833, allocations: 1.392 MB / 305.5 MB, free: 4.891 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003539/0.02869, allocations: 156.6 kB / 305.6 MB, free: 4.734 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002577/0.02895, allocations: 216.3 kB / 305.8 MB, free: 4.523 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.03065, allocations: 1.594 MB / 307.4 MB, free: 2.809 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.881e-05/0.03069, allocations: 0 / 307.4 MB, free: 2.809 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.03082, allocations: 87.98 kB / 307.5 MB, free: 2.723 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.467e-05/0.0309, allocations: 108.2 kB / 307.6 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009417/0.03184, allocations: 0.6187 MB / 308.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007128/0.03897, allocations: 6.786 MB / 315 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008943/0.03986, allocations: 0.6478 MB / 315.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006164/0.04048, allocations: 453.3 kB / 316.1 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.04063, allocations: 52.97 kB / 316.2 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.04066, allocations: 54.33 kB / 316.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of pre-optimization done (n=101): time 3.226e-06/0.04066, allocations: 0 / 316.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of matching and sorting (n=116): time 0.004392/0.04505, allocations: 2.485 MB / 318.7 MB, free: 7.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.04509, allocations: 68.34 kB / 318.8 MB, free: 7.102 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.04627, allocations: 1.134 MB / 319.9 MB, free: 5.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.974e-05/0.04633, allocations: 49.7 kB / 320 MB, free: 5.906 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000537/0.04687, allocations: 1.155 MB / 321.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.04709, allocations: 432.3 kB / 321.5 MB, free: 4.312 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.04736, allocations: 273 kB / 321.8 MB, free: 4.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.0475, allocations: 0.5432 MB / 322.3 MB, free: 3.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.04772, allocations: 167.8 kB / 322.5 MB, free: 3.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004557/0.04818, allocations: 0.7057 MB / 323.2 MB, free: 2.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/0.04895, allocations: 1.004 MB / 324.2 MB, free: 1.168 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.04895, allocations: 7.938 kB / 324.2 MB, free: 1.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.001394/0.05035, allocations: 1.206 MB / 325.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.05037, allocations: 8.25 kB / 325.4 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.05038, allocations: 16 kB / 325.5 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000469/0.05085, allocations: 246.3 kB / 325.7 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005854/0.05143, allocations: 287.5 kB / 326 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003427/0.05486, allocations: 6.436 MB / 332.4 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.05532, allocations: 55.94 kB / 332.5 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-05/0.05538, allocations: 40 kB / 332.5 MB, free: 8.512 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.0003673/0.05574, allocations: 256.1 kB / 332.8 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.05594, allocations: 191 kB / 332.9 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.05733, allocations: 0.9836 MB / 333.9 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.05733, allocations: 12 kB / 333.9 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.05734, allocations: 7.984 kB / 334 MB, free: 7.027 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.05735, allocations: 3.984 kB / 334 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003108/0.06046, allocations: 2.833 MB / 336.8 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.06046, allocations: 8.094 kB / 336.8 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.06088, allocations: 179.7 kB / 337 MB, free: 3.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005186/0.0614, allocations: 269.7 kB / 337.2 MB, free: 3.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.116e-05/0.06145, allocations: 35.92 kB / 337.3 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003866/0.06532, allocations: 8.16 MB / 345.4 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.06532, allocations: 7.938 kB / 345.4 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.06692, allocations: 1.437 MB / 346.9 MB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003545/0.06727, allocations: 254.8 kB / 347.1 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.06739, allocations: 24 kB / 347.1 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003618/0.06775, allocations: 59.84 kB / 347.2 MB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.0679, allocations: 96.77 kB / 347.3 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.439e-05/0.06794, allocations: 27.98 kB / 347.3 MB, free: 8.961 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005377/0.06848, allocations: 0.6256 MB / 348 MB, free: 8.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.06848, allocations: 0 / 348 MB, free: 8.332 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001505/0.06998, allocations: 451.9 kB / 348.4 MB, free: 7.891 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.0002926/0.07028, allocations: 205.5 kB / 348.6 MB, free: 7.684 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.07164, allocations: 1.364 MB / 350 MB, free: 6.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.07164, allocations: 0 / 350 MB, free: 6.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009461/0.07259, allocations: 1.198 MB / 351.2 MB, free: 4.996 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009815/0.07357, allocations: 368.9 kB / 351.5 MB, free: 4.645 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004785/0.07835, allocations: 3.757 MB / 355.3 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004563/0.07881, allocations: 0.5636 MB / 355.8 MB, free: 188 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.09224/0.1711, allocations: 190.6 kB / 356 MB, free: 77.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008583/0.1719, allocations: 425.2 kB / 356.4 MB, free: 77.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.1719, allocations: 1.812 kB / 356.4 MB, free: 77.7 MB / 330.7 MB Notification: Performance of Templates: time 0.02708/0.199, allocations: 24.28 MB / 380.7 MB, free: 64.15 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 -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.4490096219815314]