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.001643/0.001643, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002068/0.002068, allocations: 206.6 kB / 24.47 MB, free: 3.977 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.57/1.57, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.001726/0.001726, allocations: 43.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2165, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01219/0.2287, allocations: 8.56 MB / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005733/0.2344, allocations: 2.987 MB / 443.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006784/0.2351, allocations: 71.5 kB / 444 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.2366, allocations: 0.6672 MB / 444.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001937/0.2385, allocations: 0.8155 MB / 445.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008348/0.2393, allocations: 403.4 kB / 445.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002924/0.2423, allocations: 2.552 MB / 448.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002098/0.2444, allocations: 1.303 MB / 449.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001577/0.2459, allocations: 1.234 MB / 450.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002083/0.248, allocations: 1.534 MB / 452.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004484/0.2485, allocations: 316 kB / 452.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008357/0.2493, allocations: 423.8 kB / 453.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009559/0.2503, allocations: 0.9115 MB / 454.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001281/0.2515, allocations: 1.151 MB / 455.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004784/0.2563, allocations: 4.2 MB / 459.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2563, allocations: 4 kB / 459.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2563, allocations: 0 / 459.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.564e-05/0.2564, allocations: 0 / 459.5 MB, free: 11.46 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.005888/0.2623, allocations: 2.9 MB / 462.4 MB, free: 8.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2623, allocations: 12.03 kB / 462.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008467/0.2631, allocations: 311.2 kB / 462.7 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/0.2663, allocations: 1.471 MB / 464.1 MB, free: 6.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000226/0.2665, allocations: 164.3 kB / 464.3 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000467/0.267, allocations: 208 kB / 464.5 MB, free: 6.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005233/0.2722, allocations: 2.904 MB / 467.4 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.714e-05/0.2723, allocations: 8 kB / 467.4 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.2725, allocations: 87.94 kB / 467.5 MB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/0.2726, allocations: 104.2 kB / 467.6 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004504/0.2771, allocations: 2.347 MB / 470 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01316/0.2903, allocations: 7.374 MB / 477.3 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002395/0.2927, allocations: 1.19 MB / 478.5 MB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.2945, allocations: 0.886 MB / 479.4 MB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002367/0.2947, allocations: 48.97 kB / 479.4 MB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.2948, allocations: 47.55 kB / 479.5 MB, free: 6.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.216e-06/0.2948, allocations: 0 / 479.5 MB, free: 6.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01372/0.3085, allocations: 5.715 MB / 485.2 MB, free: 1.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.3085, allocations: 64.41 kB / 485.3 MB, free: 1.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.3104, allocations: 1.305 MB / 486.6 MB, free: 15.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.763e-05/0.3105, allocations: 45.7 kB / 486.6 MB, free: 15.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008209/0.3113, allocations: 1.078 MB / 487.7 MB, free: 14.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.3117, allocations: 416.5 kB / 488.1 MB, free: 14.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004523/0.3121, allocations: 259.5 kB / 488.4 MB, free: 13.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.3123, allocations: 361.9 kB / 488.7 MB, free: 13.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.3135, allocations: 0.6949 MB / 489.4 MB, free: 12.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/0.3151, allocations: 1.077 MB / 490.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002931/0.318, allocations: 1.868 MB / 492.4 MB, free: 9.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.996e-06/0.318, allocations: 4 kB / 492.4 MB, free: 9.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004337/0.3224, allocations: 2.323 MB / 494.7 MB, free: 7.324 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3224, allocations: 8 kB / 494.7 MB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/0.3224, allocations: 12 kB / 494.7 MB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.3235, allocations: 415.3 kB / 495.1 MB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.3248, allocations: 331.5 kB / 495.4 MB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007663/0.3325, allocations: 6.623 MB / 0.4903 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.3337, allocations: 103.8 kB / 0.4904 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.3338, allocations: 59.98 kB / 0.4904 GB, free: 15.47 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.001168/0.3349, allocations: 0.6851 MB / 0.4911 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/0.3352, allocations: 159 kB / 0.4913 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003984/0.3392, allocations: 2.035 MB / 0.4933 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.3392, allocations: 15.98 kB / 0.4933 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.3392, allocations: 8 kB / 0.4933 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/0.3392, allocations: 3.984 kB / 0.4933 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007647/0.3469, allocations: 3.946 MB / 0.4971 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.3469, allocations: 4 kB / 0.4971 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009962/0.3479, allocations: 207.7 kB / 0.4973 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.3492, allocations: 455.4 kB / 0.4978 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.251e-05/0.3493, allocations: 31.98 kB / 0.4978 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009222/0.3585, allocations: 8.068 MB / 0.5057 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.3585, allocations: 4 kB / 0.5057 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005483/0.364, allocations: 3.013 MB / 0.5086 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009429/0.3649, allocations: 294.9 kB / 0.5089 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/0.3651, allocations: 27.94 kB / 0.5089 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008903/0.366, allocations: 87.89 kB / 0.509 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/0.3663, allocations: 96.83 kB / 0.5091 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.875e-05/0.3664, allocations: 35.98 kB / 0.5091 GB, free: 11.71 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001394/0.3678, allocations: 0.8797 MB / 0.51 GB, free: 10.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3678, allocations: 3.938 kB / 0.51 GB, free: 10.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001634/0.3694, allocations: 463.9 kB / 0.5104 GB, free: 10.37 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.0004042/0.3698, allocations: 198.9 kB / 0.5106 GB, free: 10.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004012/0.3738, allocations: 2.083 MB / 0.5127 GB, free: 8.043 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3738, allocations: 4.062 kB / 0.5127 GB, free: 8.039 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002611/0.3764, allocations: 1.395 MB / 0.514 GB, free: 6.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/0.3783, allocations: 364.8 kB / 0.5144 GB, free: 6.242 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007654/0.3859, allocations: 4.507 MB / 0.5188 GB, free: 1.664 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001568/0.3875, allocations: 1.238 MB / 0.52 GB, free: 388 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.3885, allocations: 344.5 kB / 0.5203 GB, free: 36 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.3889, allocations: 111.5 kB / 0.5204 GB, free: 15.92 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3889, allocations: 0 / 0.5204 GB, free: 15.92 MB / 446.1 MB Notification: Performance of Templates: time 0.2117/0.6006, allocations: 26.47 MB / 0.5463 GB, free: 95.95 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 gbode -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: 5.801747176999925]