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.001391/0.001391, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0008911/0.0008911, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.9201/0.9201, allocations: 173.3 MB / 201.2 MB, free: 9.32 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 2.194e-06/2.194e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.029e-05/3.248e-05, allocations: 6.25 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01079/0.01082, allocations: 11.69 MB / 279.7 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007228/0.01805, allocations: 3.854 MB / 283.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001978/0.02003, allocations: 83.44 kB / 283.6 MB, free: 6.723 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002087/0.02212, allocations: 0.8544 MB / 284.5 MB, free: 5.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003202/0.02532, allocations: 1.063 MB / 285.5 MB, free: 4.797 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.02662, allocations: 0.5381 MB / 286.1 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004564/0.03119, allocations: 3.556 MB / 289.6 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1276/0.1588, allocations: 1.492 MB / 291.1 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003304/0.1621, allocations: 2.553 MB / 293.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002116/0.1642, allocations: 1.726 MB / 295.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008731/0.1651, allocations: 396.2 kB / 295.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.1661, allocations: 0.6165 MB / 296.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008414/0.167, allocations: 1.158 MB / 297.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002299/0.1693, allocations: 1.253 MB / 298.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00337/0.1726, allocations: 2.991 MB / 301.8 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.1727, allocations: 1.375 kB / 301.8 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1727, allocations: 0 / 301.8 MB, free: 15.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001134/0.1728, allocations: 0 / 301.8 MB, free: 15.47 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.004009/0.1768, allocations: 3.823 MB / 305.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.1768, allocations: 8.672 kB / 305.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009299/0.1777, allocations: 0.6598 MB / 306.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.1793, allocations: 1.81 MB / 308.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.074e-05/0.1794, allocations: 200.3 kB / 308.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002257/0.1796, allocations: 273.6 kB / 308.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/0.182, allocations: 2.203 MB / 310.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.694e-05/0.1821, allocations: 10.31 kB / 310.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/0.1822, allocations: 112.2 kB / 310.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-05/0.1823, allocations: 122.9 kB / 311 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.1839, allocations: 0.9913 MB / 312 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007346/0.1913, allocations: 9.046 MB / 321.1 MB, free: 1.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.1923, allocations: 0.885 MB / 321.9 MB, free: 1.055 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007091/0.193, allocations: 0.551 MB / 322.5 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.1932, allocations: 61.27 kB / 322.6 MB, free: 452 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.1932, allocations: 50.7 kB / 322.6 MB, free: 392 kB / 266.7 MB Notification: Performance of pre-optimization done (n=131): time 2.966e-06/0.1932, allocations: 0 / 322.6 MB, free: 392 kB / 266.7 MB Notification: Performance of matching and sorting (n=148): time 0.006771/0.2, allocations: 3.719 MB / 326.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.2, allocations: 68.72 kB / 326.4 MB, free: 12.6 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.2019, allocations: 1.57 MB / 328 MB, free: 11.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.707e-05/0.202, allocations: 49.7 kB / 328 MB, free: 10.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000797/0.2028, allocations: 1.452 MB / 329.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003343/0.2031, allocations: 0.5297 MB / 330 MB, free: 8.984 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003607/0.2035, allocations: 329.1 kB / 330.3 MB, free: 8.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004224/0.2039, allocations: 488.7 kB / 330.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000467/0.2044, allocations: 271.8 kB / 331.1 MB, free: 7.906 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007099/0.2051, allocations: 0.9556 MB / 332 MB, free: 6.668 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/0.2063, allocations: 1.385 MB / 333.4 MB, free: 5.062 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.2064, allocations: 4 kB / 333.4 MB, free: 5.059 MB / 282.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.002045/0.2084, allocations: 1.624 MB / 335 MB, free: 3.523 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.2084, allocations: 12 kB / 335 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.2084, allocations: 19.62 kB / 335.1 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007203/0.2092, allocations: 308.7 kB / 335.4 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007966/0.21, allocations: 412.4 kB / 335.8 MB, free: 2.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/0.2134, allocations: 5.105 MB / 340.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007093/0.2141, allocations: 107.9 kB / 341 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.891e-05/0.2142, allocations: 74.66 kB / 341 MB, free: 13.32 MB / 298.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.0005716/0.2147, allocations: 271.9 kB / 341.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.215, allocations: 254.7 kB / 341.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/0.2167, allocations: 1.271 MB / 342.8 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/0.2167, allocations: 19.98 kB / 342.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.2167, allocations: 7.938 kB / 342.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.2167, allocations: 7.969 kB / 342.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00475/0.2215, allocations: 3.586 MB / 346.4 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.2215, allocations: 0 / 346.4 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005982/0.2221, allocations: 271.7 kB / 346.7 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008143/0.2229, allocations: 349.6 kB / 347.1 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.223, allocations: 35.98 kB / 347.1 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004065/0.2271, allocations: 6.837 MB / 353.9 MB, free: 64 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.2271, allocations: 11.41 kB / 353.9 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.2294, allocations: 1.864 MB / 355.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005832/0.23, allocations: 362.4 kB / 356.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.2302, allocations: 36 kB / 356.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005297/0.2307, allocations: 71.92 kB / 356.3 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.2309, allocations: 132.9 kB / 356.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.461e-05/0.231, allocations: 47.89 kB / 356.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001034/0.232, allocations: 0.914 MB / 357.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.232, allocations: 0 / 357.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001701/0.2337, allocations: 0.5741 MB / 357.9 MB, free: 12.02 MB / 314.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.0004256/0.2342, allocations: 228.6 kB / 358.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00227/0.2364, allocations: 1.52 MB / 359.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.2364, allocations: 0 / 359.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.2376, allocations: 1.187 MB / 360.9 MB, free: 9.082 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/0.2388, allocations: 432.9 kB / 361.3 MB, free: 8.668 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006508/0.2453, allocations: 4.796 MB / 366.1 MB, free: 3.789 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000852/0.2461, allocations: 0.7007 MB / 366.8 MB, free: 3.062 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007585/0.2469, allocations: 367.4 kB / 367.1 MB, free: 2.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003003/0.2472, allocations: 132.5 kB / 367.3 MB, free: 2.57 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.2472, allocations: 0 / 367.3 MB, free: 2.57 MB / 314.7 MB Notification: Performance of Templates: time 0.03705/0.2843, allocations: 29.95 MB / 397.2 MB, free: 5.062 MB / 346.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.7674634689465165]