Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001073/0.001073, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004583/0.004583, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9501/0.9501, allocations: 177 MB / 205.2 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.[0-9,]+.|smr.idq_rr.[0-9,]+.|smr.idq_sr.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.771e-05/1.925e-05, allocations: 2.312 kB / 273.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.008429/0.008448, allocations: 9.952 MB / 283.4 MB, free: 7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006156/0.0146, allocations: 3.368 MB / 286.8 MB, free: 3.621 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.01578, allocations: 79.44 kB / 286.8 MB, free: 3.543 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.01718, allocations: 0.7141 MB / 287.6 MB, free: 2.824 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001901/0.01908, allocations: 0.9235 MB / 288.5 MB, free: 1.895 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006915/0.01978, allocations: 435.2 kB / 288.9 MB, free: 1.469 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.129/0.1488, allocations: 3.091 MB / 292 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.1503, allocations: 1.366 MB / 293.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002311/0.1526, allocations: 2.267 MB / 295.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001515/0.1541, allocations: 1.525 MB / 297.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004382/0.1546, allocations: 343.3 kB / 297.5 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008723/0.1555, allocations: 452.1 kB / 297.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001598/0.157, allocations: 1.026 MB / 299 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002191/0.1592, allocations: 1.089 MB / 300 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003092/0.1623, allocations: 2.6 MB / 302.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1623, allocations: 0 / 302.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1623, allocations: 2.531 kB / 302.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001213/0.1625, allocations: 0 / 302.6 MB, free: 14.01 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.004331/0.1668, allocations: 3.017 MB / 305.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.1668, allocations: 12.88 kB / 305.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008808/0.1677, allocations: 454.9 kB / 306.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.1694, allocations: 1.209 MB / 307.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.707e-05/0.1695, allocations: 180.1 kB / 307.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.1697, allocations: 235.5 kB / 307.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.1717, allocations: 1.802 MB / 309.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.941e-05/0.1717, allocations: 11.02 kB / 309.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.1718, allocations: 92.5 kB / 309.6 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-05/0.1719, allocations: 107.3 kB / 309.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.1731, allocations: 0.69 MB / 310.4 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007147/0.1803, allocations: 6.194 MB / 316.6 MB, free: 4.434 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008625/0.1811, allocations: 0.7619 MB / 317.4 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005171/0.1817, allocations: 472.4 kB / 317.8 MB, free: 3.254 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001701/0.1818, allocations: 60.48 kB / 317.9 MB, free: 3.195 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1819, allocations: 43.56 kB / 317.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 3.346e-06/0.1819, allocations: 0 / 317.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=131): time 0.004688/0.1865, allocations: 2.627 MB / 320.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/0.1866, allocations: 68.72 kB / 320.6 MB, free: 464 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009372/0.1875, allocations: 1.152 MB / 321.8 MB, free: 15.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/0.1876, allocations: 45.7 kB / 321.8 MB, free: 15.46 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000538/0.1881, allocations: 0.976 MB / 322.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/0.1884, allocations: 470.1 kB / 323.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003017/0.1887, allocations: 272.3 kB / 323.5 MB, free: 13.87 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.831e-05/0.1888, allocations: 301.1 kB / 323.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.1891, allocations: 182.8 kB / 324 MB, free: 13.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.1895, allocations: 0.565 MB / 324.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008258/0.1903, allocations: 0.9168 MB / 325.5 MB, free: 11.7 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.1903, allocations: 4 kB / 325.5 MB, free: 11.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001604/0.1919, allocations: 1.053 MB / 326.6 MB, free: 10.72 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.192, allocations: 12 kB / 326.6 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.192, allocations: 15.94 kB / 326.6 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005319/0.1925, allocations: 232.9 kB / 326.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007945/0.1933, allocations: 352.3 kB / 327.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003423/0.1967, allocations: 4.708 MB / 331.9 MB, free: 5.234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000954/0.1977, allocations: 67.86 kB / 331.9 MB, free: 5.168 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.692e-05/0.1978, allocations: 48 kB / 332 MB, free: 5.121 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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.0007211/0.1985, allocations: 209.9 kB / 332.2 MB, free: 4.926 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002854/0.1988, allocations: 147.8 kB / 332.3 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.2, allocations: 0.8991 MB / 333.2 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2, allocations: 12 kB / 333.2 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2, allocations: 4 kB / 333.2 MB, free: 3.863 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.2, allocations: 7.969 kB / 333.2 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/0.2036, allocations: 2.608 MB / 335.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.2036, allocations: 4 kB / 335.9 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006605/0.2043, allocations: 291.7 kB / 336.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005484/0.2048, allocations: 255.1 kB / 336.4 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.115e-05/0.2049, allocations: 39.98 kB / 336.4 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003862/0.2088, allocations: 5.913 MB / 342.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.2088, allocations: 7.469 kB / 342.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.2107, allocations: 1.306 MB / 343.7 MB, free: 9.395 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/0.2112, allocations: 233 kB / 343.9 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.2113, allocations: 31.98 kB / 343.9 MB, free: 9.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004063/0.2117, allocations: 55.97 kB / 344 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.2119, allocations: 107.9 kB / 344.1 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.212, allocations: 27.98 kB / 344.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006963/0.2127, allocations: 0.5812 MB / 344.7 MB, free: 8.438 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2127, allocations: 0 / 344.7 MB, free: 8.438 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001431/0.2141, allocations: 499.9 kB / 345.2 MB, free: 7.949 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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,1,100.0%), (1,6,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003109/0.2144, allocations: 190.5 kB / 345.4 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.216, allocations: 1.194 MB / 346.6 MB, free: 6.609 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.371e-05/0.2161, allocations: 20.5 kB / 346.6 MB, free: 6.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009462/0.217, allocations: 0.9543 MB / 347.5 MB, free: 5.629 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.2182, allocations: 428.8 kB / 347.9 MB, free: 5.234 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005924/0.2242, allocations: 4.055 MB / 352 MB, free: 1.117 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005492/0.2247, allocations: 0.5741 MB / 352.6 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0008311/0.2256, allocations: 222.5 kB / 352.8 MB, free: 296 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007355/0.2263, allocations: 441.1 kB / 353.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of SimCode: time 1.863e-06/0.2263, allocations: 0 / 353.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of Templates: time 0.03687/0.2632, allocations: 27.48 MB / 380.7 MB, free: 4.863 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3012804109603167]