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.0009029/0.0009029, allocations: 84 kB / 21.43 MB, free: 3.137 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.004237/0.004237, allocations: 141.6 kB / 24.68 MB, free: 8.891 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.8671/0.8671, allocations: 173.4 MB / 201.2 MB, free: 9.441 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.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.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.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.125e-05/3.363e-05, allocations: 2.281 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009413/0.009447, allocations: 8.535 MB / 328.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004182/0.01363, allocations: 2.936 MB / 331.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000515/0.01414, allocations: 75.5 kB / 331.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009295/0.01507, allocations: 0.6751 MB / 331.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.01621, allocations: 0.8381 MB / 332.8 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.01663, allocations: 395.3 kB / 333.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.01809, allocations: 2.633 MB / 335.8 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001039/0.01913, allocations: 1.253 MB / 337 MB, free: 4.379 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.0205, allocations: 1.774 MB / 338.8 MB, free: 2.602 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.02156, allocations: 1.294 MB / 340.1 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000225/0.02178, allocations: 316 kB / 340.4 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003995/0.02218, allocations: 419.7 kB / 340.8 MB, free: 0.582 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005163/0.0227, allocations: 0.9388 MB / 341.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000597/0.02329, allocations: 0.9666 MB / 342.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002693/0.02599, allocations: 4.21 MB / 346.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.02599, allocations: 0 / 346.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.02599, allocations: 0 / 346.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.02601, allocations: 4 kB / 346.9 MB, free: 10.45 MB / 314.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.003013/0.02902, allocations: 2.865 MB / 349.8 MB, free: 7.531 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.02906, allocations: 8.922 kB / 349.8 MB, free: 7.523 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004245/0.02949, allocations: 303.2 kB / 350.1 MB, free: 7.227 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.03103, allocations: 1.47 MB / 351.6 MB, free: 5.711 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.323e-05/0.03111, allocations: 160.6 kB / 351.7 MB, free: 5.551 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.03132, allocations: 212.3 kB / 351.9 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003005/0.03432, allocations: 2.904 MB / 354.8 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.733e-05/0.03436, allocations: 3.938 kB / 354.9 MB, free: 2.324 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.03449, allocations: 91.98 kB / 354.9 MB, free: 2.234 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.046e-05/0.03456, allocations: 104.2 kB / 355 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.03699, allocations: 2.343 MB / 357.4 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007033/0.04402, allocations: 7.382 MB / 364.8 MB, free: 8.156 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.04534, allocations: 1.182 MB / 365.9 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.04656, allocations: 0.889 MB / 366.8 MB, free: 6.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.04671, allocations: 56.95 kB / 366.9 MB, free: 6.016 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.04673, allocations: 43.56 kB / 366.9 MB, free: 5.961 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 2.174e-06/0.04673, allocations: 0 / 366.9 MB, free: 5.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.006924/0.05366, allocations: 5.702 MB / 372.6 MB, free: 236 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.05369, allocations: 76.22 kB / 372.7 MB, free: 148 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/0.05502, allocations: 1.297 MB / 374 MB, free: 14.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.05507, allocations: 49.7 kB / 374.1 MB, free: 14.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004395/0.05551, allocations: 1.066 MB / 375.1 MB, free: 13.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.0557, allocations: 428.3 kB / 375.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.05595, allocations: 251.5 kB / 375.8 MB, free: 13.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.05604, allocations: 365.8 kB / 376.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006917/0.05673, allocations: 0.6871 MB / 376.8 MB, free: 11.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008417/0.05758, allocations: 1.07 MB / 377.9 MB, free: 10.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.05916, allocations: 1.868 MB / 379.8 MB, free: 8.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.05917, allocations: 0 / 379.8 MB, free: 8.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002568/0.06173, allocations: 2.339 MB / 382.1 MB, free: 6.371 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.06175, allocations: 8.25 kB / 382.1 MB, free: 6.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.06177, allocations: 16 kB / 382.1 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005527/0.06232, allocations: 409.9 kB / 382.5 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006008/0.06292, allocations: 331.5 kB / 382.9 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004406/0.06733, allocations: 6.612 MB / 389.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005314/0.06786, allocations: 103.9 kB / 389.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.668e-05/0.06792, allocations: 63.92 kB / 389.6 MB, free: 14.53 MB / 362.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.0007731/0.0687, allocations: 0.6895 MB / 390.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.06884, allocations: 151 kB / 390.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/0.07097, allocations: 2.031 MB / 392.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.07098, allocations: 12 kB / 392.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.07098, allocations: 7.938 kB / 392.5 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.07099, allocations: 7.969 kB / 392.5 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004297/0.07529, allocations: 3.942 MB / 396.5 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.07529, allocations: 4 kB / 396.5 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004492/0.07574, allocations: 216.1 kB / 396.7 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005949/0.07634, allocations: 457.6 kB / 397.1 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.391e-05/0.07639, allocations: 31.98 kB / 397.2 MB, free: 6.852 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004871/0.08126, allocations: 8.045 MB / 405.2 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.08127, allocations: 11.97 kB / 405.2 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/0.08411, allocations: 3.005 MB / 408.2 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004032/0.08451, allocations: 298.7 kB / 408.5 MB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.08462, allocations: 32 kB / 408.5 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.08502, allocations: 79.91 kB / 408.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.08517, allocations: 100.7 kB / 408.7 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.334e-05/0.08521, allocations: 32 kB / 408.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001238/0.08645, allocations: 0.8757 MB / 409.6 MB, free: 9.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08645, allocations: 0 / 409.6 MB, free: 9.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001067/0.08752, allocations: 460 kB / 410.1 MB, free: 9.461 MB / 378.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.0002957/0.08781, allocations: 202.4 kB / 410.3 MB, free: 9.258 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002126/0.08994, allocations: 2.078 MB / 412.4 MB, free: 7.137 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.08994, allocations: 8 kB / 412.4 MB, free: 7.129 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.09116, allocations: 1.384 MB / 413.7 MB, free: 5.691 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009043/0.09207, allocations: 352.7 kB / 414.1 MB, free: 5.344 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/0.09658, allocations: 4.399 MB / 418.5 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008486/0.09742, allocations: 1.211 MB / 419.7 MB, free: 15.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.09767, allocations: 120.5 kB / 419.8 MB, free: 15.5 MB / 394.7 MB Notification: Performance of SimCode: time 8.72e-07/0.09767, allocations: 4 kB / 419.8 MB, free: 15.5 MB / 394.7 MB Notification: Performance of Templates: time 0.1659/0.2635, allocations: 69.1 MB / 488.9 MB, free: 91.67 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.1858621733263135]