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.001425/0.001425, allocations: 87.67 kB / 21.19 MB, free: 3.367 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.00161/0.00161, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 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.9836/0.9836, allocations: 177 MB / 204.8 MB, free: 5.598 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.963e-06/1.963e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.212e-05/3.408e-05, allocations: 9.266 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01295/0.01299, allocations: 10.17 MB / 283.1 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006306/0.01929, allocations: 3.268 MB / 286.4 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008105/0.02011, allocations: 75.5 kB / 286.4 MB, free: 3.871 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.02115, allocations: 0.6946 MB / 287.1 MB, free: 3.172 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001289/0.02244, allocations: 0.9236 MB / 288.1 MB, free: 2.242 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004784/0.02291, allocations: 427.3 kB / 288.5 MB, free: 1.824 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1198/0.1428, allocations: 3.093 MB / 291.6 MB, free: 16.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002009/0.1448, allocations: 1.335 MB / 292.9 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002995/0.1478, allocations: 2.041 MB / 295 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.1502, allocations: 1.616 MB / 296.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008583/0.1511, allocations: 354.4 kB / 296.9 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008195/0.1519, allocations: 462.3 kB / 297.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008141/0.1527, allocations: 1.083 MB / 298.4 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.1538, allocations: 1.109 MB / 299.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002424/0.1563, allocations: 2.652 MB / 302.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1563, allocations: 0 / 302.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1563, allocations: 3.75 kB / 302.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.071e-05/0.1563, allocations: 1.562 kB / 302.2 MB, free: 14.02 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.003641/0.16, allocations: 3.463 MB / 305.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.16, allocations: 9.75 kB / 305.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008068/0.1608, allocations: 0.5549 MB / 306.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001599/0.1624, allocations: 1.636 MB / 307.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.833e-05/0.1625, allocations: 170.9 kB / 308 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002127/0.1627, allocations: 239.4 kB / 308.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.1648, allocations: 1.915 MB / 310.2 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.411e-05/0.1649, allocations: 11.89 kB / 310.2 MB, free: 9.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.165, allocations: 97 kB / 310.3 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.346e-05/0.1651, allocations: 107 kB / 310.4 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.1665, allocations: 0.8847 MB / 311.3 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00646/0.173, allocations: 7.996 MB / 319.3 MB, free: 1.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009732/0.174, allocations: 0.7894 MB / 320.1 MB, free: 0.543 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006777/0.1747, allocations: 0.542 MB / 320.6 MB, free: 0 / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.1749, allocations: 55.7 kB / 320.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.1749, allocations: 50.38 kB / 320.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of pre-optimization done (n=116): time 2.054e-06/0.1749, allocations: 0 / 320.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of matching and sorting (n=131): time 0.005326/0.1802, allocations: 3.396 MB / 324.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.1803, allocations: 64.72 kB / 324.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.1816, allocations: 1.433 MB / 325.6 MB, free: 10.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/0.1816, allocations: 45.7 kB / 325.7 MB, free: 10.9 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000673/0.1823, allocations: 1.286 MB / 326.9 MB, free: 9.602 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.1826, allocations: 481 kB / 327.4 MB, free: 9.137 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.1829, allocations: 293.1 kB / 327.7 MB, free: 8.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.183, allocations: 476.8 kB / 328.2 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/0.1834, allocations: 243.8 kB / 328.4 MB, free: 8.133 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006625/0.1841, allocations: 0.8178 MB / 329.2 MB, free: 7.094 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.1852, allocations: 1.176 MB / 330.4 MB, free: 5.738 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1852, allocations: 0 / 330.4 MB, free: 5.738 MB / 282.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.001813/0.187, allocations: 1.433 MB / 331.8 MB, free: 4.371 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.187, allocations: 18.75 kB / 331.8 MB, free: 4.355 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1871, allocations: 15.62 kB / 331.9 MB, free: 4.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005314/0.1876, allocations: 253.4 kB / 332.1 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006947/0.1883, allocations: 357.8 kB / 332.5 MB, free: 3.754 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003522/0.1918, allocations: 6.609 MB / 339.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005519/0.1924, allocations: 103.8 kB / 339.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/0.1924, allocations: 71.3 kB / 339.2 MB, free: 12.66 MB / 298.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.0004692/0.1929, allocations: 252.8 kB / 339.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002318/0.1931, allocations: 226.8 kB / 339.7 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.1947, allocations: 1.176 MB / 340.9 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.1947, allocations: 12 kB / 340.9 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1947, allocations: 4 kB / 340.9 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.1947, allocations: 7.969 kB / 340.9 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0039/0.1986, allocations: 3.328 MB / 344.2 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1986, allocations: 4 kB / 344.2 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005421/0.1991, allocations: 233.6 kB / 344.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006102/0.1997, allocations: 292.8 kB / 344.8 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.376e-05/0.1998, allocations: 39.97 kB / 344.8 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004727/0.2045, allocations: 8.412 MB / 353.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.2045, allocations: 11.56 kB / 353.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.2066, allocations: 1.718 MB / 354.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/0.207, allocations: 326.7 kB / 355.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.2072, allocations: 31.98 kB / 355.3 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004339/0.2076, allocations: 83.91 kB / 355.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.2078, allocations: 128.3 kB / 355.5 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.2078, allocations: 44.05 kB / 355.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000825/0.2087, allocations: 0.8204 MB / 356.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2087, allocations: 3.938 kB / 356.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001237/0.2099, allocations: 0.5 MB / 356.9 MB, free: 10.46 MB / 314.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%), (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.0002874/0.2102, allocations: 205.6 kB / 357.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.2122, allocations: 1.537 MB / 358.6 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2122, allocations: 0 / 358.6 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.2133, allocations: 1.297 MB / 359.9 MB, free: 7.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.2145, allocations: 441.2 kB / 360.3 MB, free: 6.973 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005144/0.2197, allocations: 4.265 MB / 364.6 MB, free: 2.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.2202, allocations: 0.656 MB / 365.2 MB, free: 1.941 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005916/0.2208, allocations: 350.3 kB / 365.6 MB, free: 1.594 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005849/0.2214, allocations: 124.5 kB / 365.7 MB, free: 1.473 MB / 314.7 MB Notification: Performance of SimCode: time 9.51e-07/0.2214, allocations: 0 / 365.7 MB, free: 1.473 MB / 314.7 MB Notification: Performance of Templates: time 0.02976/0.2511, allocations: 26.99 MB / 392.7 MB, free: 6.895 MB / 346.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 -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.524798161815852]