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.001402/0.001402, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001624/0.001624, allocations: 209.2 kB / 24.48 MB, free: 3.941 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 2.005/2.005, allocations: 230.6 MB / 258.2 MB, free: 7.766 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.001755/0.001755, allocations: 55.92 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3784, allocations: 53.36 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01407/0.3925, allocations: 8.57 MB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007299/0.3998, allocations: 2.987 MB / 443.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.4011, allocations: 67.56 kB / 444 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00194/0.4031, allocations: 0.6711 MB / 444.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002734/0.4058, allocations: 0.8116 MB / 445.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.4069, allocations: 391.5 kB / 445.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01318/0.42, allocations: 2.564 MB / 448.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002416/0.4225, allocations: 1.303 MB / 449.7 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002111/0.4246, allocations: 1.223 MB / 450.9 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002536/0.4271, allocations: 1.545 MB / 452.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005399/0.4276, allocations: 316 kB / 452.8 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01114/0.4388, allocations: 423.8 kB / 453.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001179/0.44, allocations: 0.9154 MB / 454.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001626/0.4416, allocations: 1.14 MB / 455.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005439/0.447, allocations: 4.204 MB / 459.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.447, allocations: 0 / 459.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.447, allocations: 3.938 kB / 459.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.719e-05/0.4471, allocations: 0 / 459.5 MB, free: 11.44 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.0174/0.4645, allocations: 2.908 MB / 462.4 MB, free: 8.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.4645, allocations: 8.031 kB / 462.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.4655, allocations: 311.2 kB / 462.7 MB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01381/0.4793, allocations: 1.467 MB / 464.1 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/0.4795, allocations: 164.3 kB / 464.3 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004663/0.48, allocations: 215.9 kB / 464.5 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006457/0.4865, allocations: 2.9 MB / 467.4 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.845e-05/0.4865, allocations: 7.875 kB / 467.4 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002691/0.4868, allocations: 87.98 kB / 467.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001612/0.487, allocations: 112.2 kB / 467.6 MB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01626/0.5032, allocations: 2.339 MB / 470 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02808/0.5313, allocations: 7.37 MB / 477.3 MB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003085/0.5344, allocations: 1.183 MB / 478.5 MB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/0.5365, allocations: 0.8932 MB / 479.4 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002652/0.5368, allocations: 56.89 kB / 479.5 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.237e-05/0.5369, allocations: 47.5 kB / 479.5 MB, free: 6.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 4.549e-06/0.5369, allocations: 4 kB / 479.5 MB, free: 6.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01695/0.5538, allocations: 5.704 MB / 485.2 MB, free: 1.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.5539, allocations: 68.34 kB / 485.3 MB, free: 1.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002393/0.5563, allocations: 1.301 MB / 486.6 MB, free: 15.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.5564, allocations: 49.7 kB / 486.6 MB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000988/0.5573, allocations: 1.07 MB / 487.7 MB, free: 14.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004457/0.5578, allocations: 424.5 kB / 488.1 MB, free: 14.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005308/0.5583, allocations: 259.5 kB / 488.4 MB, free: 13.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.5585, allocations: 361.9 kB / 488.7 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.5601, allocations: 0.691 MB / 489.4 MB, free: 12.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.562, allocations: 1.066 MB / 490.5 MB, free: 11.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003518/0.5655, allocations: 1.868 MB / 492.3 MB, free: 9.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.5655, allocations: 4 kB / 492.3 MB, free: 9.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005334/0.5708, allocations: 2.331 MB / 494.7 MB, free: 7.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.5709, allocations: 11.98 kB / 494.7 MB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/0.5709, allocations: 12 kB / 494.7 MB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.5722, allocations: 411.4 kB / 495.1 MB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.5738, allocations: 335.3 kB / 495.4 MB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008544/0.5823, allocations: 6.618 MB / 0.4903 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.5838, allocations: 111.8 kB / 0.4904 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.5839, allocations: 63.98 kB / 0.4904 GB, free: 15.45 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.001446/0.5854, allocations: 0.685 MB / 0.4911 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003381/0.5857, allocations: 147.1 kB / 0.4913 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004785/0.5905, allocations: 2.038 MB / 0.4932 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.5905, allocations: 19.94 kB / 0.4933 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.5905, allocations: 4 kB / 0.4933 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.5905, allocations: 3.984 kB / 0.4933 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009204/0.5997, allocations: 3.942 MB / 0.4971 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/0.5997, allocations: 4 kB / 0.4971 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.601, allocations: 219.6 kB / 0.4973 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001521/0.6025, allocations: 451.5 kB / 0.4978 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.6026, allocations: 31.98 kB / 0.4978 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.613, allocations: 8.064 MB / 0.5057 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/0.613, allocations: 11.94 kB / 0.5057 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0065/0.6195, allocations: 3.013 MB / 0.5086 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.6205, allocations: 290.9 kB / 0.5089 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002644/0.6208, allocations: 35.92 kB / 0.5089 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.6219, allocations: 83.91 kB / 0.509 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002731/0.6222, allocations: 92.77 kB / 0.5091 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.6223, allocations: 39.98 kB / 0.5091 GB, free: 11.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.6239, allocations: 0.8798 MB / 0.51 GB, free: 10.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6239, allocations: 0 / 0.51 GB, free: 10.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002043/0.626, allocations: 459.9 kB / 0.5104 GB, free: 10.35 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.0004338/0.6264, allocations: 206.9 kB / 0.5106 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004447/0.6309, allocations: 2.083 MB / 0.5127 GB, free: 8.016 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.6309, allocations: 3.938 kB / 0.5127 GB, free: 8.012 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002953/0.6338, allocations: 1.395 MB / 0.514 GB, free: 6.562 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01639/0.6502, allocations: 357.6 kB / 0.5144 GB, free: 6.223 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009459/0.6597, allocations: 4.507 MB / 0.5188 GB, free: 1.641 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001756/0.6614, allocations: 1.231 MB / 0.52 GB, free: 372 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001385/0.6628, allocations: 352.5 kB / 0.5203 GB, free: 12 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004457/0.6633, allocations: 111.4 kB / 0.5204 GB, free: 15.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.302e-06/0.6633, allocations: 0 / 0.5204 GB, free: 15.9 MB / 446.1 MB Notification: Performance of Templates: time 0.3471/1.01, allocations: 26.48 MB / 0.5463 GB, free: 95.97 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 -s cvode -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: 8.90411474800203]