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.001814/0.001814, allocations: 115.1 kB / 18.45 MB, free: 4.566 MB / 14.72 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.001832/0.001832, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 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.524/1.524, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 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 0.002374/0.002374, allocations: 47.92 kB / 374.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09942, allocations: 53.33 MB / 427.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.2181/0.3175, allocations: 9.707 MB / 437.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00556/0.3231, allocations: 3.167 MB / 440.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.3247, allocations: 75.06 kB / 440.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001991/0.3267, allocations: 0.7137 MB / 441.2 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00293/0.3297, allocations: 0.8078 MB / 442 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.3308, allocations: 392.8 kB / 442.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003319/0.3341, allocations: 2.564 MB / 444.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002255/0.3363, allocations: 1.674 MB / 446.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002186/0.3385, allocations: 1.219 MB / 447.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002847/0.3414, allocations: 1.537 MB / 449.3 MB, free: 184 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008263/0.3422, allocations: 317.2 kB / 449.7 MB, free: 184 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.3436, allocations: 428.6 kB / 450.1 MB, free: 152 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.3448, allocations: 0.9029 MB / 451 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002903/0.3477, allocations: 1.418 MB / 452.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006547/0.3542, allocations: 4.18 MB / 456.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3542, allocations: 3.938 kB / 456.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3542, allocations: 1 kB / 456.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001286/0.3544, allocations: 0 / 456.6 MB, free: 12.79 MB / 366.1 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.00801/0.3624, allocations: 2.984 MB / 459.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.3624, allocations: 10.06 kB / 459.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.3635, allocations: 306 kB / 459.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003068/0.3665, allocations: 1.553 MB / 461.4 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.3667, allocations: 163.4 kB / 461.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003743/0.3671, allocations: 214.3 kB / 461.8 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005621/0.3727, allocations: 2.798 MB / 464.6 MB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.662e-05/0.3727, allocations: 7.75 kB / 464.6 MB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002183/0.3729, allocations: 82.28 kB / 464.7 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.3731, allocations: 104.5 kB / 464.8 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004467/0.3775, allocations: 2.353 MB / 467.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01524/0.3928, allocations: 8.519 MB / 475.7 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002727/0.3955, allocations: 1.638 MB / 477.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.3973, allocations: 0.9041 MB / 478.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003323/0.3976, allocations: 212.2 kB / 478.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.3977, allocations: 44.38 kB / 478.4 MB, free: 12.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.876e-06/0.3977, allocations: 0 / 478.4 MB, free: 12.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01495/0.4126, allocations: 6.256 MB / 484.7 MB, free: 6.566 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.4127, allocations: 64.41 kB / 484.8 MB, free: 6.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/0.4151, allocations: 1.438 MB / 486.2 MB, free: 5.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.4152, allocations: 49.7 kB / 486.3 MB, free: 4.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008939/0.4161, allocations: 1.071 MB / 487.3 MB, free: 3.902 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003996/0.4165, allocations: 424.4 kB / 487.7 MB, free: 3.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004421/0.417, allocations: 255.5 kB / 488 MB, free: 3.227 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.4171, allocations: 361.9 kB / 488.3 MB, free: 2.867 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.4184, allocations: 0.691 MB / 489 MB, free: 2.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.4199, allocations: 1.073 MB / 490.1 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.4227, allocations: 1.864 MB / 492 MB, free: 14.92 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.4227, allocations: 8 kB / 492 MB, free: 14.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004351/0.427, allocations: 2.418 MB / 494.4 MB, free: 12.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.427, allocations: 12 kB / 494.4 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.4271, allocations: 12 kB / 494.4 MB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.4281, allocations: 419.2 kB / 494.8 MB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.4293, allocations: 331.5 kB / 495.2 MB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007519/0.4369, allocations: 7.038 MB / 0.4904 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.4383, allocations: 107.3 kB / 0.4905 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.4385, allocations: 64 kB / 0.4906 GB, free: 4.07 MB / 398.1 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.001292/0.4398, allocations: 0.6885 MB / 0.4913 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003564/0.4401, allocations: 166.9 kB / 0.4914 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003966/0.4441, allocations: 2.13 MB / 0.4935 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.4441, allocations: 12 kB / 0.4935 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.4441, allocations: 4 kB / 0.4935 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4441, allocations: 3.984 kB / 0.4935 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00872/0.4528, allocations: 4.552 MB / 0.498 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.4528, allocations: 8.344 kB / 0.498 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009617/0.4538, allocations: 215.7 kB / 0.4982 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/0.455, allocations: 452.4 kB / 0.4986 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.993e-05/0.4551, allocations: 31.98 kB / 0.4986 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009153/0.4643, allocations: 8.62 MB / 0.5071 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4643, allocations: 4 kB / 0.5071 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005801/0.4701, allocations: 3.108 MB / 0.5101 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/0.4712, allocations: 391.9 kB / 0.5105 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/0.4714, allocations: 31.98 kB / 0.5105 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009232/0.4724, allocations: 79.91 kB / 0.5106 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002599/0.4726, allocations: 96.75 kB / 0.5107 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.23e-05/0.4727, allocations: 35.98 kB / 0.5107 GB, free: 14.62 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001695/0.4744, allocations: 0.9927 MB / 0.5117 GB, free: 13.62 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4744, allocations: 0 / 0.5117 GB, free: 13.62 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001939/0.4763, allocations: 463.9 kB / 0.5121 GB, free: 13.17 MB / 430.1 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.0004634/0.4768, allocations: 197.7 kB / 0.5123 GB, free: 12.97 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004051/0.4809, allocations: 2.158 MB / 0.5144 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4809, allocations: 0 / 0.5144 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002541/0.4834, allocations: 1.395 MB / 0.5158 GB, free: 9.309 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.4856, allocations: 423.8 kB / 0.5162 GB, free: 8.918 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008062/0.4937, allocations: 4.581 MB / 0.5206 GB, free: 4.254 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001677/0.4954, allocations: 1.784 MB / 0.5224 GB, free: 2.434 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006321/0.496, allocations: 127.4 kB / 0.5225 GB, free: 2.309 MB / 430.1 MB Notification: Performance of SimCode: time 1.433e-06/0.496, allocations: 0 / 0.5225 GB, free: 2.309 MB / 430.1 MB Notification: Performance of Templates: time 0.08216/0.5782, allocations: 69.48 MB / 0.5904 GB, free: 12.83 MB / 0.4981 GB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/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: 12.658230211003684]