Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001904/0.001904, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002288/0.002288, allocations: 215.3 kB / 23.73 MB, free: 4.156 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.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 7.801 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_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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 47.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2307, allocations: 53.38 MB / 431.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01183/0.2425, allocations: 9.058 MB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006383/0.2489, allocations: 3.124 MB / 443.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001477/0.2503, allocations: 75.5 kB / 443.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002147/0.2525, allocations: 0.6908 MB / 444.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00296/0.2555, allocations: 0.8855 MB / 445.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.2566, allocations: 427.4 kB / 445.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003846/0.2605, allocations: 2.996 MB / 448.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002156/0.2626, allocations: 1.332 MB / 450.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002042/0.2647, allocations: 1.39 MB / 451.6 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.2676, allocations: 1.658 MB / 453.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009893/0.2686, allocations: 356 kB / 453.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.2701, allocations: 463.8 kB / 454 MB, free: 160 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001357/0.2714, allocations: 1.044 MB / 455.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001808/0.2732, allocations: 1.291 MB / 456.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005771/0.279, allocations: 4.757 MB / 461.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.279, allocations: 0 / 461.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.279, allocations: 0 / 461.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.624e-05/0.2791, allocations: 0 / 461.1 MB, free: 9.039 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007006/0.2861, allocations: 3.276 MB / 464.4 MB, free: 5.711 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.2862, allocations: 11.97 kB / 464.4 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/0.2873, allocations: 378.8 kB / 464.8 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003719/0.291, allocations: 1.713 MB / 466.5 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.2912, allocations: 172.8 kB / 466.7 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004055/0.2916, allocations: 236 kB / 466.9 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005606/0.2972, allocations: 3.237 MB / 470.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.076e-05/0.2972, allocations: 7.953 kB / 470.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002154/0.2974, allocations: 92 kB / 470.2 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001703/0.2976, allocations: 108.6 kB / 470.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004797/0.3024, allocations: 2.696 MB / 473 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01488/0.3173, allocations: 8.404 MB / 481.4 MB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002517/0.3198, allocations: 1.403 MB / 482.8 MB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001917/0.3217, allocations: 1.039 MB / 483.9 MB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002202/0.3219, allocations: 48.97 kB / 483.9 MB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.322, allocations: 43.56 kB / 484 MB, free: 1.691 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.476e-06/0.322, allocations: 0 / 484 MB, free: 1.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01409/0.3361, allocations: 6.344 MB / 490.3 MB, free: 11.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.3361, allocations: 64.72 kB / 490.4 MB, free: 11.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002394/0.3385, allocations: 1.615 MB / 492 MB, free: 9.609 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.3386, allocations: 45.7 kB / 492 MB, free: 9.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009618/0.3396, allocations: 1.197 MB / 493.2 MB, free: 8.348 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004084/0.34, allocations: 472 kB / 493.7 MB, free: 7.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004641/0.3405, allocations: 287.5 kB / 494 MB, free: 7.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3406, allocations: 313.1 kB / 494.3 MB, free: 7.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001394/0.342, allocations: 0.7925 MB / 495.1 MB, free: 6.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.3438, allocations: 1.201 MB / 496.3 MB, free: 5.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003166/0.3469, allocations: 2.098 MB / 498.4 MB, free: 2.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/0.3469, allocations: 4 kB / 498.4 MB, free: 2.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004805/0.3517, allocations: 2.584 MB / 0.4892 GB, free: 248 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.3518, allocations: 19.92 kB / 0.4892 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.3518, allocations: 12 kB / 0.4892 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3528, allocations: 411.5 kB / 0.4896 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.3542, allocations: 363.4 kB / 0.49 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007845/0.362, allocations: 6.654 MB / 0.4965 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.3634, allocations: 107.8 kB / 0.4966 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.3635, allocations: 60 kB / 0.4966 GB, free: 8.324 MB / 414.1 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.001487/0.365, allocations: 0.8057 MB / 0.4974 GB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003176/0.3653, allocations: 178.9 kB / 0.4976 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004146/0.3694, allocations: 2.283 MB / 0.4998 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.3694, allocations: 12 kB / 0.4998 GB, free: 5.012 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3694, allocations: 4 kB / 0.4998 GB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.3695, allocations: 7.969 kB / 0.4998 GB, free: 5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008198/0.3777, allocations: 4.439 MB / 0.5042 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.3777, allocations: 4 kB / 0.5042 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.3787, allocations: 236.1 kB / 0.5044 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.3799, allocations: 458.9 kB / 0.5048 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.274e-05/0.3799, allocations: 31.98 kB / 0.5049 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008722/0.3887, allocations: 8.089 MB / 0.5128 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3887, allocations: 4 kB / 0.5128 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005974/0.3946, allocations: 3.431 MB / 0.5161 GB, free: 3.738 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.3958, allocations: 346.7 kB / 0.5165 GB, free: 3.398 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.396, allocations: 31.98 kB / 0.5165 GB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008888/0.3969, allocations: 87.91 kB / 0.5166 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.3972, allocations: 128.7 kB / 0.5167 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.604e-05/0.3973, allocations: 35.98 kB / 0.5167 GB, free: 3.121 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001693/0.399, allocations: 1.097 MB / 0.5178 GB, free: 2.027 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.399, allocations: 0 / 0.5178 GB, free: 2.027 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001705/0.4007, allocations: 0.4999 MB / 0.5183 GB, free: 1.527 MB / 430.1 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.0003907/0.4011, allocations: 194.9 kB / 0.5185 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004166/0.4053, allocations: 2.319 MB / 0.5207 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4053, allocations: 0.8125 kB / 0.5207 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002598/0.4079, allocations: 1.551 MB / 0.5223 GB, free: 13.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.4097, allocations: 425 kB / 0.5227 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008037/0.4177, allocations: 5.087 MB / 0.5276 GB, free: 7.777 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/0.4195, allocations: 1.435 MB / 0.529 GB, free: 6.305 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001218/0.4207, allocations: 426.3 kB / 0.5294 GB, free: 5.883 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003906/0.4211, allocations: 123.4 kB / 0.5296 GB, free: 5.762 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4211, allocations: 0 / 0.5296 GB, free: 5.762 MB / 446.1 MB Notification: Performance of Templates: time 0.2276/0.6487, allocations: 29.92 MB / 0.5588 GB, free: 86.77 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.738644672557712]