Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_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.001419/0.001419, allocations: 79.73 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001139/0.001139, allocations: 173 kB / 25.33 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8996/0.8996, allocations: 158.6 MB / 187.2 MB, free: 2.504 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.[0-9,]+.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.[0-9,]+.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 0 / 251.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.383e-05, allocations: 2.312 kB / 251.1 MB, free: 3.566 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.01402/0.01404, allocations: 16.32 MB / 267.4 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008367/0.02241, allocations: 5.375 MB / 272.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.02369, allocations: 115.2 kB / 272.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00209/0.02578, allocations: 1.239 MB / 274.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.02837, allocations: 1.653 MB / 275.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.02976, allocations: 1.077 MB / 276.8 MB, free: 9.672 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003723/0.03349, allocations: 5.311 MB / 282.2 MB, free: 4.336 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001878/0.03537, allocations: 2.136 MB / 284.3 MB, free: 2.121 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002736/0.0381, allocations: 3.646 MB / 287.9 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002093/0.04019, allocations: 2.479 MB / 290.4 MB, free: 11.98 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005541/0.04075, allocations: 0.6016 MB / 291 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.04177, allocations: 0.8159 MB / 291.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007948/0.04257, allocations: 1.464 MB / 293.3 MB, free: 9.098 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.04386, allocations: 1.793 MB / 295.1 MB, free: 7.301 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.04694, allocations: 4.217 MB / 299.3 MB, free: 3.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.04694, allocations: 7.984 kB / 299.3 MB, free: 3.062 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.04694, allocations: 0 / 299.3 MB, free: 3.062 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.552e-05/0.04699, allocations: 0 / 299.3 MB, free: 3.062 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.1066/0.1536, allocations: 5.544 MB / 304.9 MB, free: 34.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1537, allocations: 13.45 kB / 304.9 MB, free: 34.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002944/0.1566, allocations: 1.408 MB / 306.3 MB, free: 34.57 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003015/0.1596, allocations: 2.614 MB / 308.9 MB, free: 34.19 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.1598, allocations: 298.2 kB / 309.2 MB, free: 34.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003798/0.1602, allocations: 405.3 kB / 309.6 MB, free: 34.17 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004239/0.1644, allocations: 3.193 MB / 312.8 MB, free: 33.66 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.297e-05/0.1645, allocations: 6.141 kB / 312.8 MB, free: 33.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002198/0.1647, allocations: 170.8 kB / 313 MB, free: 33.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001324/0.1648, allocations: 170.7 kB / 313.1 MB, free: 33.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.1676, allocations: 1.508 MB / 314.6 MB, free: 33.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.1785, allocations: 13.45 MB / 328.1 MB, free: 25.81 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.1809, allocations: 2.379 MB / 330.5 MB, free: 24.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/0.1819, allocations: 0.8748 MB / 331.3 MB, free: 23.92 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00319/0.1851, allocations: 3.007 MB / 334.3 MB, free: 20.99 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.1851, allocations: 54.62 kB / 334.4 MB, free: 20.93 MB / 282.7 MB Notification: Performance of pre-optimization done (n=156): time 2.625e-06/0.1851, allocations: 0 / 334.4 MB, free: 20.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=159): time 0.004463/0.1896, allocations: 3.599 MB / 338 MB, free: 17.33 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.459e-05/0.1896, allocations: 72.66 kB / 338.1 MB, free: 17.25 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.191, allocations: 1.835 MB / 339.9 MB, free: 15.38 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.076e-05/0.1911, allocations: 49.7 kB / 339.9 MB, free: 15.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006303/0.1917, allocations: 2.011 MB / 342 MB, free: 13.3 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.1919, allocations: 0.5899 MB / 342.5 MB, free: 12.72 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003433/0.1923, allocations: 417.7 kB / 343 MB, free: 12.3 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.435e-05/0.1923, allocations: 480.7 kB / 343.4 MB, free: 11.83 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004476/0.1927, allocations: 296.1 kB / 343.7 MB, free: 11.54 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007058/0.1935, allocations: 1.36 MB / 345.1 MB, free: 9.73 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.1947, allocations: 1.804 MB / 346.9 MB, free: 7.582 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/0.1948, allocations: 4 kB / 346.9 MB, free: 7.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.001883/0.1966, allocations: 1.808 MB / 348.7 MB, free: 5.902 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1967, allocations: 16 kB / 348.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.1967, allocations: 24.03 kB / 348.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.1969, allocations: 99.33 kB / 348.8 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009635/0.1978, allocations: 0.5308 MB / 349.4 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007417/0.1986, allocations: 2.186 MB / 351.5 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006521/0.1992, allocations: 103.9 kB / 351.6 MB, free: 2.875 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.995e-05/0.1993, allocations: 104 kB / 351.7 MB, free: 2.773 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * 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 (269): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004687/0.1998, allocations: 299.3 kB / 352 MB, free: 2.504 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002134/0.2, allocations: 282.5 kB / 352.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.2015, allocations: 1.354 MB / 353.7 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.2015, allocations: 16 kB / 353.7 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2015, allocations: 4 kB / 353.7 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.2015, allocations: 7.969 kB / 353.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004347/0.2059, allocations: 3.966 MB / 357.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2059, allocations: 0 / 357.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000642/0.2065, allocations: 270.5 kB / 357.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005197/0.207, allocations: 266.4 kB / 358.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.703e-05/0.2071, allocations: 39.98 kB / 358.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003702/0.2108, allocations: 7.196 MB / 365.4 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2108, allocations: 7.562 kB / 365.4 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002237/0.2131, allocations: 1.86 MB / 367.3 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.2135, allocations: 398.3 kB / 367.7 MB, free: 2.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.2137, allocations: 32 kB / 367.7 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/0.2142, allocations: 71.94 kB / 367.8 MB, free: 2.359 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.2144, allocations: 124.9 kB / 367.9 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.116e-05/0.2144, allocations: 47.98 kB / 367.9 MB, free: 2.195 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001009/0.2154, allocations: 1.02 MB / 369 MB, free: 1.156 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2154, allocations: 0 / 369 MB, free: 1.156 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001191/0.2166, allocations: 0.6601 MB / 369.6 MB, free: 0.4961 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.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 (132): * Single equations (assignments): 129 * Array equations: 0 * 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 {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000262/0.2169, allocations: 182.6 kB / 369.8 MB, free: 332 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001571/0.2185, allocations: 1.316 MB / 371.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2185, allocations: 0 / 371.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000997/0.2195, allocations: 1.156 MB / 372.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.2207, allocations: 0.5038 MB / 372.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006717/0.2274, allocations: 6.107 MB / 378.9 MB, free: 7.203 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006688/0.228, allocations: 0.9335 MB / 379.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008407/0.2289, allocations: 462.7 kB / 380.3 MB, free: 5.793 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/0.2292, allocations: 156.5 kB / 380.4 MB, free: 5.641 MB / 314.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2292, allocations: 0 / 380.4 MB, free: 5.641 MB / 314.7 MB Notification: Performance of Templates: time 0.03773/0.2669, allocations: 30.35 MB / 410.8 MB, free: 7.359 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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.757472238969058]