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.002165/0.002165, allocations: 103.5 kB / 20.97 MB, free: 3.453 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.001959/0.001959, allocations: 156.8 kB / 24.27 MB, free: 152 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 1.574/1.574, allocations: 177 MB / 204.5 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",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.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.444e-05/3.657e-05, allocations: 2.312 kB / 272.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.02474/0.02478, allocations: 10.07 MB / 282.3 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.03606, allocations: 3.256 MB / 285.5 MB, free: 4.395 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002016/0.03808, allocations: 75.5 kB / 285.6 MB, free: 4.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003729/0.04181, allocations: 0.71 MB / 286.3 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005053/0.04686, allocations: 0.9197 MB / 287.2 MB, free: 2.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002411/0.04927, allocations: 431.3 kB / 287.7 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1541/0.2034, allocations: 3.077 MB / 290.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00317/0.2065, allocations: 1.336 MB / 292.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004444/0.211, allocations: 2.037 MB / 294.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003751/0.2147, allocations: 1.619 MB / 295.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009169/0.2157, allocations: 353.5 kB / 296.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.2173, allocations: 466.8 kB / 296.5 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001229/0.2186, allocations: 1.074 MB / 297.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001907/0.2205, allocations: 1.118 MB / 298.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005434/0.2259, allocations: 4.793 MB / 303.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2259, allocations: 0 / 303.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2259, allocations: 0 / 303.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001458/0.2261, allocations: 0.5312 kB / 303.5 MB, free: 13.25 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.007525/0.2336, allocations: 3.692 MB / 307.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.2336, allocations: 10.31 kB / 307.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/0.235, allocations: 0.5602 MB / 307.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/0.238, allocations: 1.654 MB / 309.4 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.2381, allocations: 174.5 kB / 309.6 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003055/0.2384, allocations: 237.8 kB / 309.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004253/0.2426, allocations: 2.988 MB / 312.8 MB, free: 7.324 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.541e-05/0.2427, allocations: 12.52 kB / 312.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/0.2429, allocations: 96 kB / 312.9 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.48e-05/0.243, allocations: 112.3 kB / 313 MB, free: 7.109 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003173/0.2462, allocations: 2.02 MB / 315.1 MB, free: 5.082 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01699/0.2631, allocations: 11.01 MB / 326.1 MB, free: 9.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/0.2655, allocations: 1.058 MB / 327.1 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.2673, allocations: 0.7457 MB / 327.9 MB, free: 7.996 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002644/0.2675, allocations: 56.97 kB / 327.9 MB, free: 7.938 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.2676, allocations: 54.39 kB / 328 MB, free: 7.875 MB / 282.7 MB Notification: Performance of pre-optimization done (n=116): time 3.286e-06/0.2676, allocations: 0 / 328 MB, free: 7.875 MB / 282.7 MB Notification: Performance of matching and sorting (n=131): time 0.01152/0.2791, allocations: 4.174 MB / 332.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.2792, allocations: 68.72 kB / 332.2 MB, free: 3.609 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/0.2822, allocations: 1.916 MB / 334.1 MB, free: 1.676 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.2824, allocations: 49.64 kB / 334.2 MB, free: 1.621 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/0.2837, allocations: 1.367 MB / 335.6 MB, free: 248 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005687/0.2843, allocations: 0.4977 MB / 336.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006049/0.2849, allocations: 349.1 kB / 336.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002342/0.2851, allocations: 484.8 kB / 336.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.2861, allocations: 447.7 kB / 337.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.2878, allocations: 1.064 MB / 338.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002817/0.2906, allocations: 1.655 MB / 340 MB, free: 11.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.2906, allocations: 8 kB / 340 MB, free: 11.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004248/0.2948, allocations: 1.863 MB / 341.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.2949, allocations: 15.94 kB / 341.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.2949, allocations: 12 kB / 341.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.2959, allocations: 288.5 kB / 342.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.2973, allocations: 349 kB / 342.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007743/0.3051, allocations: 6.925 MB / 349.5 MB, free: 1.664 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.3066, allocations: 103.9 kB / 349.6 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.3068, allocations: 63.98 kB / 349.6 MB, free: 1.5 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.001352/0.3081, allocations: 0.6492 MB / 350.3 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005349/0.3086, allocations: 230.3 kB / 350.5 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003673/0.3123, allocations: 1.508 MB / 352 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.3123, allocations: 12 kB / 352 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.3123, allocations: 4 kB / 352 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/0.3124, allocations: 7.969 kB / 352 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009863/0.3222, allocations: 4.23 MB / 356.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.3222, allocations: 416 / 356.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.3233, allocations: 237.6 kB / 356.5 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.3245, allocations: 321.1 kB / 356.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.3246, allocations: 35.98 kB / 356.8 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009288/0.3339, allocations: 8.693 MB / 365.5 MB, free: 1.086 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.3339, allocations: 7.469 kB / 365.5 MB, free: 1.082 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005166/0.3391, allocations: 2.264 MB / 367.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/0.3405, allocations: 322.7 kB / 368.1 MB, free: 14.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003497/0.3408, allocations: 35.98 kB / 368.2 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009758/0.3418, allocations: 79.11 kB / 368.2 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003643/0.3422, allocations: 127.9 kB / 368.4 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.3423, allocations: 43.98 kB / 368.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002024/0.3443, allocations: 1.121 MB / 369.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3443, allocations: 0 / 369.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002191/0.3465, allocations: 0.5038 MB / 370 MB, free: 12.52 MB / 330.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.0005001/0.347, allocations: 204.8 kB / 370.2 MB, free: 12.33 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004115/0.3511, allocations: 1.955 MB / 372.2 MB, free: 10.37 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.3511, allocations: 0 / 372.2 MB, free: 10.37 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002704/0.3538, allocations: 1.469 MB / 373.7 MB, free: 8.855 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/0.3563, allocations: 441 kB / 374.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0094/0.3657, allocations: 4.493 MB / 378.6 MB, free: 3.859 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002104/0.3678, allocations: 1.341 MB / 379.9 MB, free: 2.477 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001327/0.3691, allocations: 346.3 kB / 380.3 MB, free: 2.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/0.3696, allocations: 128.5 kB / 380.4 MB, free: 2.008 MB / 330.7 MB Notification: Performance of SimCode: time 1.492e-06/0.3696, allocations: 0 / 380.4 MB, free: 2.008 MB / 330.7 MB Notification: Performance of Templates: time 0.05259/0.4222, allocations: 26.97 MB / 407.4 MB, free: 7.453 MB / 362.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.603927948046476]