Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.00139/0.00139, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001553/0.001553, allocations: 166.8 kB / 24.99 MB, free: 8.336 MB / 18.57 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 0.9429/0.9429, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.868e-05/3.072e-05, allocations: 9.266 kB / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.02012/0.02015, allocations: 16.97 MB / 290.1 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1267/0.1469, allocations: 5.586 MB / 295.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.1487, allocations: 130.2 kB / 295.8 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002675/0.1513, allocations: 1.263 MB / 297 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003572/0.1549, allocations: 1.686 MB / 298.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001807/0.1567, allocations: 1.083 MB / 299.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005175/0.1619, allocations: 5.408 MB / 305.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002774/0.1647, allocations: 2.237 MB / 307.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004361/0.169, allocations: 3.361 MB / 310.8 MB, free: 7.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003016/0.172, allocations: 2.409 MB / 313.2 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009368/0.173, allocations: 0.6176 MB / 313.8 MB, free: 6.762 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001364/0.1743, allocations: 0.8406 MB / 314.7 MB, free: 6.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007584/0.1751, allocations: 1.487 MB / 316.2 MB, free: 5.559 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001693/0.1768, allocations: 1.821 MB / 318 MB, free: 3.891 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003925/0.1807, allocations: 4.291 MB / 322.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1807, allocations: 0 / 322.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1807, allocations: 3.938 kB / 322.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.229e-05/0.1808, allocations: 0 / 322.3 MB, free: 15.82 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.007423/0.1882, allocations: 5.691 MB / 328 MB, free: 10.08 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.1882, allocations: 8.031 kB / 328 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003795/0.192, allocations: 1.523 MB / 329.5 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003561/0.1956, allocations: 2.862 MB / 332.4 MB, free: 5.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.1958, allocations: 303 kB / 332.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003705/0.1961, allocations: 397.7 kB / 333 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0043/0.2004, allocations: 3.197 MB / 336.2 MB, free: 1.672 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.429e-05/0.2005, allocations: 7.938 kB / 336.2 MB, free: 1.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002479/0.2007, allocations: 160 kB / 336.4 MB, free: 1.508 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/0.2009, allocations: 176 kB / 336.6 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002899/0.2038, allocations: 1.527 MB / 338.1 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01432/0.2181, allocations: 13.5 MB / 351.6 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002888/0.221, allocations: 2.422 MB / 354 MB, free: 15.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.223, allocations: 1.32 MB / 355.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004108/0.2271, allocations: 3.24 MB / 358.6 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.2271, allocations: 58.64 kB / 358.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=157): time 2.725e-06/0.2271, allocations: 4 kB / 358.6 MB, free: 11.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=160): time 0.005965/0.2331, allocations: 3.745 MB / 362.4 MB, free: 7.352 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.2331, allocations: 72.66 kB / 362.5 MB, free: 7.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.2349, allocations: 1.865 MB / 364.3 MB, free: 5.363 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.705e-05/0.235, allocations: 49.7 kB / 364.4 MB, free: 5.309 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009459/0.2359, allocations: 2.012 MB / 366.4 MB, free: 3.285 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.2362, allocations: 0.5877 MB / 367 MB, free: 2.703 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000409/0.2367, allocations: 421.7 kB / 367.4 MB, free: 2.281 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.147e-05/0.2367, allocations: 480.8 kB / 367.9 MB, free: 1.809 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005258/0.2373, allocations: 308.1 kB / 368.2 MB, free: 1.504 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001135/0.2384, allocations: 1.352 MB / 369.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.24, allocations: 1.824 MB / 371.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.24, allocations: 8 kB / 371.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.002316/0.2423, allocations: 1.855 MB / 373.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.2424, allocations: 16 kB / 373.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.2424, allocations: 28.52 kB / 373.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002803/0.2427, allocations: 131.2 kB / 373.4 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.2437, allocations: 0.5265 MB / 373.9 MB, free: 10.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.2453, allocations: 2.407 MB / 376.3 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008239/0.2461, allocations: 107.9 kB / 376.4 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.2462, allocations: 95.98 kB / 376.5 MB, free: 8.121 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (266): * Single equations (assignments): 264 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007007/0.2469, allocations: 303.8 kB / 376.8 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/0.2472, allocations: 286.5 kB / 377.1 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.2491, allocations: 1.41 MB / 378.5 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.2491, allocations: 19.94 kB / 378.5 MB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.2491, allocations: 4 kB / 378.5 MB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.2491, allocations: 11.97 kB / 378.5 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004923/0.2541, allocations: 4.071 MB / 382.6 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.2541, allocations: 0 / 382.6 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006525/0.2547, allocations: 271.6 kB / 382.9 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007222/0.2554, allocations: 289.3 kB / 383.1 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.096e-05/0.2555, allocations: 39.98 kB / 383.2 MB, free: 1.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004632/0.2601, allocations: 7.418 MB / 390.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.2601, allocations: 4 kB / 390.6 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003146/0.2633, allocations: 1.927 MB / 392.5 MB, free: 7.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007208/0.264, allocations: 408.8 kB / 392.9 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.2642, allocations: 36 kB / 393 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007208/0.265, allocations: 75.92 kB / 393 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.2652, allocations: 117.1 kB / 393.2 MB, free: 6.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.429e-05/0.2653, allocations: 55.92 kB / 393.2 MB, free: 6.895 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001408/0.2667, allocations: 1.033 MB / 394.2 MB, free: 5.844 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2667, allocations: 0 / 394.2 MB, free: 5.844 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001974/0.2687, allocations: 0.6718 MB / 394.9 MB, free: 5.172 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (129): * Single equations (assignments): 126 * 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,8,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.000317/0.269, allocations: 181.8 kB / 395.1 MB, free: 4.988 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.2712, allocations: 1.344 MB / 396.4 MB, free: 3.621 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2712, allocations: 0 / 396.4 MB, free: 3.621 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.2728, allocations: 1.196 MB / 397.6 MB, free: 2.371 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/0.2745, allocations: 0.5195 MB / 398.1 MB, free: 1.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009591/0.2841, allocations: 6.115 MB / 404.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.2851, allocations: 0.9381 MB / 405.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001459/0.2865, allocations: 463 kB / 405.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004226/0.287, allocations: 160.5 kB / 405.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of SimCode: time 2.344e-06/0.287, allocations: 0 / 405.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of Templates: time 0.1401/0.427, allocations: 29.92 MB / 435.7 MB, free: 122.3 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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.9510569320991635]