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.001529/0.001529, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.001588/0.001588, allocations: 215 kB / 23.74 MB, free: 4.535 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.534/1.534, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.001648/0.001648, allocations: 47.92 kB / 378.3 MB, free: 2.598 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3181, allocations: 53.36 MB / 431.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01352/0.3316, allocations: 9.759 MB / 441.4 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007058/0.3387, allocations: 3.18 MB / 444.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001306/0.34, allocations: 71.5 kB / 444.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.3417, allocations: 0.7257 MB / 445.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002304/0.344, allocations: 0.8077 MB / 446.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008469/0.3449, allocations: 403.4 kB / 446.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003082/0.348, allocations: 2.564 MB / 449.1 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001859/0.3498, allocations: 1.307 MB / 450.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001831/0.3517, allocations: 1.227 MB / 451.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002263/0.3539, allocations: 1.541 MB / 453.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004618/0.3544, allocations: 316 kB / 453.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008296/0.3552, allocations: 423.8 kB / 453.9 MB, free: 472 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009733/0.3562, allocations: 0.9193 MB / 454.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001599/0.3578, allocations: 1.416 MB / 456.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005009/0.3628, allocations: 4.173 MB / 460.4 MB, free: 9.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3628, allocations: 3.984 kB / 460.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3628, allocations: 0 / 460.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.253e-05/0.3629, allocations: 0 / 460.4 MB, free: 9.926 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.00579/0.3687, allocations: 2.908 MB / 463.4 MB, free: 6.969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3687, allocations: 8.031 kB / 463.4 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007781/0.3695, allocations: 319.2 kB / 463.7 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002838/0.3723, allocations: 1.463 MB / 465.1 MB, free: 5.145 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.3725, allocations: 168.3 kB / 465.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003127/0.3728, allocations: 208 kB / 465.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004759/0.3775, allocations: 2.807 MB / 468.3 MB, free: 1.879 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.04e-05/0.3776, allocations: 0 / 468.3 MB, free: 1.879 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002048/0.3778, allocations: 87.98 kB / 468.4 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00012/0.3779, allocations: 108.2 kB / 468.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004079/0.382, allocations: 2.347 MB / 470.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01408/0.3961, allocations: 8.363 MB / 479.2 MB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002292/0.3984, allocations: 1.183 MB / 480.4 MB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.4001, allocations: 0.8929 MB / 481.3 MB, free: 4.629 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002216/0.4003, allocations: 56.95 kB / 481.3 MB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.229e-05/0.4004, allocations: 51.48 kB / 481.4 MB, free: 4.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.415e-06/0.4004, allocations: 0 / 481.4 MB, free: 4.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.0134/0.4138, allocations: 5.739 MB / 487.1 MB, free: 14.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.4138, allocations: 60.41 kB / 487.2 MB, free: 14.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/0.416, allocations: 1.441 MB / 488.6 MB, free: 13.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.456e-05/0.416, allocations: 45.7 kB / 488.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008569/0.4169, allocations: 1.067 MB / 489.8 MB, free: 12.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.4173, allocations: 428.3 kB / 490.2 MB, free: 11.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004109/0.4177, allocations: 255.5 kB / 490.4 MB, free: 11.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.4178, allocations: 365.9 kB / 490.8 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.4191, allocations: 0.6909 MB / 491.5 MB, free: 10.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.4206, allocations: 1.07 MB / 492.5 MB, free: 9.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00279/0.4233, allocations: 1.875 MB / 494.4 MB, free: 7.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.4234, allocations: 4 kB / 494.4 MB, free: 7.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004236/0.4276, allocations: 2.327 MB / 496.7 MB, free: 4.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.4276, allocations: 12 kB / 496.8 MB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.4276, allocations: 15.94 kB / 496.8 MB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009985/0.4286, allocations: 419.3 kB / 497.2 MB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.4299, allocations: 327.5 kB / 497.5 MB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007557/0.4374, allocations: 6.747 MB / 0.4924 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.4386, allocations: 103.8 kB / 0.4925 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.4387, allocations: 56 kB / 0.4926 GB, free: 12.72 MB / 414.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.001282/0.44, allocations: 0.6927 MB / 0.4933 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002991/0.4403, allocations: 166.9 kB / 0.4934 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003839/0.4441, allocations: 2.04 MB / 0.4954 GB, free: 9.789 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.4442, allocations: 12 kB / 0.4954 GB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.4442, allocations: 4 kB / 0.4954 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.4442, allocations: 7.969 kB / 0.4954 GB, free: 9.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008458/0.4526, allocations: 4.456 MB / 0.4998 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/0.4526, allocations: 8.391 kB / 0.4998 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009362/0.4536, allocations: 215.7 kB / 0.5 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.4548, allocations: 451 kB / 0.5004 GB, free: 4.535 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.4549, allocations: 35.97 kB / 0.5005 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00894/0.4638, allocations: 8.2 MB / 0.5085 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.4638, allocations: 15.81 kB / 0.5085 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005242/0.4691, allocations: 3.025 MB / 0.5114 GB, free: 8.727 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000959/0.47, allocations: 306.8 kB / 0.5117 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003899/0.4704, allocations: 31.98 kB / 0.5118 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.4714, allocations: 87.84 kB / 0.5118 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/0.4717, allocations: 100.8 kB / 0.5119 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.006e-05/0.4718, allocations: 36 kB / 0.512 GB, free: 8.176 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001934/0.4737, allocations: 0.9888 MB / 0.5129 GB, free: 7.188 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4737, allocations: 0 / 0.5129 GB, free: 7.188 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002193/0.4759, allocations: 459.9 kB / 0.5134 GB, free: 6.738 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.0004685/0.4764, allocations: 210 kB / 0.5136 GB, free: 6.527 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004094/0.4804, allocations: 2.083 MB / 0.5156 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.4805, allocations: 0 / 0.5156 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002544/0.483, allocations: 1.395 MB / 0.517 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.4852, allocations: 422.8 kB / 0.5174 GB, free: 2.555 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008544/0.4938, allocations: 4.525 MB / 0.5218 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002074/0.4959, allocations: 1.807 MB / 0.5236 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.497, allocations: 369.6 kB / 0.5239 GB, free: 11.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003913/0.4973, allocations: 115.4 kB / 0.524 GB, free: 11.63 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4973, allocations: 0 / 0.524 GB, free: 11.63 MB / 446.1 MB Notification: Performance of Templates: time 0.3032/0.8006, allocations: 26.07 MB / 0.5495 GB, free: 96.05 MB / 446.1 MB " [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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/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: 6.004827412078157]