Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009346/0.0009346, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 145.8 kB / 25.59 MB, free: 8.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.964/0.964, allocations: 173.4 MB / 202.2 MB, free: 8.316 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.is.[0-9,]+.|smee.idq_dr.[0-9,]+.|smee.idq_rr.[0-9,]+.|smee.idq_sr.[0-9,]+.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.192e-05/1.322e-05, allocations: 2.312 kB / 269.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.009045/0.009058, allocations: 11.35 MB / 280.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00805/0.01711, allocations: 3.841 MB / 284.4 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.01821, allocations: 79.5 kB / 284.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.0195, allocations: 0.8427 MB / 285.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001498/0.021, allocations: 1.075 MB / 286.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006835/0.02168, allocations: 0.5265 MB / 286.9 MB, free: 7.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002058/0.02374, allocations: 3.571 MB / 290.5 MB, free: 4.391 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.02504, allocations: 1.506 MB / 292 MB, free: 2.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.02692, allocations: 2.55 MB / 294.6 MB, free: 272 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001374/0.0283, allocations: 1.73 MB / 296.3 MB, free: 14.53 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000386/0.02868, allocations: 396 kB / 296.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006803/0.02936, allocations: 0.6166 MB / 297.3 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006768/0.03004, allocations: 1.161 MB / 298.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.03117, allocations: 1.251 MB / 299.7 MB, free: 11.11 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002272/0.03344, allocations: 2.982 MB / 302.7 MB, free: 8.117 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.03344, allocations: 0 / 302.7 MB, free: 8.117 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.03345, allocations: 4 kB / 302.7 MB, free: 8.113 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.189e-05/0.03351, allocations: 0 / 302.7 MB, free: 8.113 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.003836/0.03734, allocations: 3.742 MB / 306.4 MB, free: 4.312 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.03737, allocations: 12.03 kB / 306.4 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009603/0.03833, allocations: 0.6588 MB / 307.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.04004, allocations: 1.704 MB / 308.8 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.04014, allocations: 201.8 kB / 309 MB, free: 1.688 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/0.04039, allocations: 276.1 kB / 309.3 MB, free: 1.418 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.04249, allocations: 2.025 MB / 311.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.898e-05/0.04254, allocations: 11.92 kB / 311.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001532/0.04269, allocations: 108 kB / 311.4 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.05e-05/0.04278, allocations: 121.2 kB / 311.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.04388, allocations: 0.7864 MB / 312.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008211/0.05209, allocations: 8.94 MB / 321.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.05333, allocations: 0.8046 MB / 322.1 MB, free: 4.137 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006478/0.05398, allocations: 499.2 kB / 322.6 MB, free: 3.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002274/0.05421, allocations: 57.28 kB / 322.6 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.05424, allocations: 54.7 kB / 322.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of pre-optimization done (n=131): time 3.186e-06/0.05425, allocations: 0 / 322.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of matching and sorting (n=148): time 0.005394/0.05964, allocations: 2.964 MB / 325.6 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.05967, allocations: 68.66 kB / 325.7 MB, free: 468 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.06099, allocations: 1.53 MB / 327.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.658e-05/0.06106, allocations: 49.7 kB / 327.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009371/0.062, allocations: 1.455 MB / 328.7 MB, free: 13.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.06229, allocations: 0.5384 MB / 329.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003359/0.06263, allocations: 341 kB / 329.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.06272, allocations: 484.7 kB / 330.1 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.06301, allocations: 207.8 kB / 330.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005817/0.06359, allocations: 0.9009 MB / 331.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000982/0.06457, allocations: 1.266 MB / 332.4 MB, free: 9.086 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.06458, allocations: 8 kB / 332.4 MB, free: 9.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.001791/0.06637, allocations: 1.475 MB / 333.9 MB, free: 7.578 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.06639, allocations: 12 kB / 333.9 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.0664, allocations: 12 kB / 333.9 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007091/0.06711, allocations: 315.1 kB / 334.3 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007854/0.0679, allocations: 379.4 kB / 334.6 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/0.07139, allocations: 4.944 MB / 339.6 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009141/0.0723, allocations: 63.94 kB / 339.6 MB, free: 1.641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.07241, allocations: 64.14 kB / 339.7 MB, free: 1.578 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000653/0.07306, allocations: 268 kB / 340 MB, free: 1.305 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003814/0.07345, allocations: 254.6 kB / 340.2 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.075, allocations: 1.164 MB / 341.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.07503, allocations: 16 kB / 341.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.07504, allocations: 4 kB / 341.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.07505, allocations: 15.91 kB / 341.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004486/0.07954, allocations: 3.438 MB / 344.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.024e-06/0.07954, allocations: 4 kB / 344.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005937/0.08014, allocations: 235.7 kB / 345.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007914/0.08093, allocations: 341.5 kB / 345.4 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.573e-05/0.08103, allocations: 43.95 kB / 345.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003684/0.08471, allocations: 6.657 MB / 352.1 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.08471, allocations: 7.938 kB / 352.1 MB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/0.08713, allocations: 1.687 MB / 353.8 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005274/0.08766, allocations: 338.4 kB / 354.1 MB, free: 2.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.08784, allocations: 39.98 kB / 354.2 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005171/0.08836, allocations: 55.97 kB / 354.2 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.08854, allocations: 117 kB / 354.3 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.117e-05/0.0886, allocations: 39.92 kB / 354.4 MB, free: 2.281 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007961/0.08939, allocations: 0.8317 MB / 355.2 MB, free: 1.457 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08939, allocations: 0 / 355.2 MB, free: 1.457 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001491/0.09088, allocations: 0.5703 MB / 355.8 MB, free: 0.8867 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,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.0003542/0.09124, allocations: 230.8 kB / 356 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.103/0.1943, allocations: 1.402 MB / 357.4 MB, free: 83.2 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.1943, allocations: 2.312 kB / 357.4 MB, free: 83.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.1957, allocations: 1.116 MB / 358.5 MB, free: 82.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.1975, allocations: 435.6 kB / 359 MB, free: 82.64 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006872/0.2043, allocations: 4.739 MB / 363.7 MB, free: 80.63 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/0.2049, allocations: 0.7117 MB / 364.4 MB, free: 80.51 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008077/0.2057, allocations: 243 kB / 364.6 MB, free: 80.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008334/0.2066, allocations: 0.4991 MB / 365.1 MB, free: 80.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.472e-06/0.2066, allocations: 0 / 365.1 MB, free: 80.39 MB / 330.7 MB Notification: Performance of Templates: time 0.03665/0.2432, allocations: 31.09 MB / 396.2 MB, free: 55.5 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_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.9492909256368876]