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.0009372/0.0009372, allocations: 78.97 kB / 21.42 MB, free: 3.074 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.0009298/0.0009298, allocations: 148.8 kB / 24.8 MB, free: 8.945 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.9978/0.9978, allocations: 173.3 MB / 201.4 MB, free: 9.219 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.693e-06/1.693e-06, allocations: 0 / 268.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.815e-05/2.985e-05, allocations: 6.25 kB / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01049/0.01052, allocations: 11.35 MB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006798/0.01732, allocations: 3.842 MB / 283.6 MB, free: 6.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001509/0.01883, allocations: 83.44 kB / 283.7 MB, free: 6.828 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001808/0.02064, allocations: 0.835 MB / 284.5 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002436/0.02307, allocations: 1.071 MB / 285.6 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009905/0.02406, allocations: 0.5381 MB / 286.1 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003482/0.02754, allocations: 3.563 MB / 289.7 MB, free: 0.793 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1309/0.1584, allocations: 1.488 MB / 291.2 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004091/0.1625, allocations: 2.555 MB / 293.8 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002709/0.1652, allocations: 1.73 MB / 295.5 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001053/0.1663, allocations: 397.3 kB / 295.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.1676, allocations: 0.6197 MB / 296.5 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.1687, allocations: 1.151 MB / 297.6 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002417/0.1711, allocations: 1.257 MB / 298.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00389/0.175, allocations: 2.996 MB / 301.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.175, allocations: 0 / 301.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.175, allocations: 1.375 kB / 301.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001361/0.1751, allocations: 0 / 301.9 MB, free: 16.1 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.005118/0.1802, allocations: 3.732 MB / 305.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1803, allocations: 12.73 kB / 305.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.1813, allocations: 0.6618 MB / 306.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.1835, allocations: 1.708 MB / 308 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.1836, allocations: 203 kB / 308.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002654/0.1839, allocations: 275.3 kB / 308.5 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.1862, allocations: 2.021 MB / 310.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.132e-05/0.1863, allocations: 6.438 kB / 310.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.1864, allocations: 108.6 kB / 310.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-05/0.1865, allocations: 132.1 kB / 310.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.1878, allocations: 0.7813 MB / 311.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008811/0.1966, allocations: 8.948 MB / 320.5 MB, free: 3.375 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000895/0.1975, allocations: 0.8071 MB / 321.3 MB, free: 2.613 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005639/0.198, allocations: 499.4 kB / 321.8 MB, free: 2.137 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001667/0.1982, allocations: 59.53 kB / 321.8 MB, free: 2.078 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.1982, allocations: 54.45 kB / 321.9 MB, free: 2.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=131): time 3.457e-06/0.1982, allocations: 0 / 321.9 MB, free: 2.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=148): time 0.005206/0.2034, allocations: 2.966 MB / 324.8 MB, free: 15.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.2035, allocations: 64.72 kB / 324.9 MB, free: 15.01 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/0.2049, allocations: 1.531 MB / 326.4 MB, free: 13.71 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.436e-05/0.205, allocations: 45.7 kB / 326.5 MB, free: 13.66 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007832/0.2058, allocations: 1.457 MB / 327.9 MB, free: 12.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.2061, allocations: 0.5414 MB / 328.5 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003502/0.2064, allocations: 344.5 kB / 328.8 MB, free: 11.45 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2066, allocations: 480.7 kB / 329.3 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.2069, allocations: 207.8 kB / 329.5 MB, free: 10.77 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009095/0.2078, allocations: 0.8999 MB / 330.4 MB, free: 9.629 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.2089, allocations: 1.272 MB / 331.7 MB, free: 8.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.2089, allocations: 8 kB / 331.7 MB, free: 8.172 MB / 282.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.001913/0.2108, allocations: 1.472 MB / 333.1 MB, free: 6.793 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.2108, allocations: 12.38 kB / 333.2 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/0.2109, allocations: 16 kB / 333.2 MB, free: 6.766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007027/0.2116, allocations: 302.4 kB / 333.5 MB, free: 6.465 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007632/0.2123, allocations: 379.3 kB / 333.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003355/0.2157, allocations: 4.943 MB / 338.8 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000905/0.2166, allocations: 59.98 kB / 338.8 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.486e-05/0.2167, allocations: 63.98 kB / 338.9 MB, free: 0.9141 MB / 282.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.0007172/0.2174, allocations: 271.9 kB / 339.2 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003316/0.2177, allocations: 266.5 kB / 339.4 MB, free: 412 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001513/0.2192, allocations: 1.147 MB / 340.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/0.2193, allocations: 27.92 kB / 340.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2193, allocations: 4 kB / 340.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.2193, allocations: 3.984 kB / 340.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00445/0.2237, allocations: 3.447 MB / 344.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2237, allocations: 0 / 344.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005826/0.2243, allocations: 243.4 kB / 344.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007683/0.2251, allocations: 351 kB / 344.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-05/0.2252, allocations: 39.98 kB / 344.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003915/0.2291, allocations: 6.669 MB / 351.3 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2291, allocations: 4 kB / 351.3 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.2317, allocations: 1.692 MB / 353 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006029/0.2323, allocations: 326.5 kB / 353.4 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.2325, allocations: 32 kB / 353.4 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004999/0.233, allocations: 63.81 kB / 353.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002073/0.2332, allocations: 123.7 kB / 353.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.088e-05/0.2332, allocations: 28 kB / 353.6 MB, free: 2.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009071/0.2341, allocations: 0.8426 MB / 354.4 MB, free: 1.484 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2341, allocations: 4 kB / 354.4 MB, free: 1.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001815/0.2359, allocations: 0.5741 MB / 355 MB, free: 0.9062 MB / 298.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.0004163/0.2364, allocations: 223.4 kB / 355.2 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.2382, allocations: 1.4 MB / 356.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2382, allocations: 0 / 356.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.2392, allocations: 1.13 MB / 357.8 MB, free: 14.2 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.2405, allocations: 440.3 kB / 358.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006871/0.2474, allocations: 4.726 MB / 362.9 MB, free: 8.992 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.2481, allocations: 0.7046 MB / 363.6 MB, free: 8.262 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000792/0.2489, allocations: 247.7 kB / 363.9 MB, free: 8.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008164/0.2497, allocations: 0.5019 MB / 364.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of SimCode: time 1.253e-06/0.2497, allocations: 0 / 364.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of Templates: time 0.04394/0.2936, allocations: 30.5 MB / 394.9 MB, free: 9.531 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.903536496683955]