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.0008811/0.0008811, allocations: 80.8 kB / 21.5 MB, free: 2.996 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.000903/0.000903, allocations: 175.3 kB / 24.92 MB, free: 9.211 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.881/0.881, allocations: 177.1 MB / 205.3 MB, free: 5.465 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 1.273e-06/1.273e-06, allocations: 0 / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.498e-06/1.077e-05, allocations: 6.312 kB / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01225/0.01227, allocations: 16.48 MB / 289.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1095/0.1217, allocations: 5.792 MB / 295.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.1239, allocations: 130.7 kB / 295.9 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002763/0.1267, allocations: 1.295 MB / 297.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003569/0.1302, allocations: 1.699 MB / 298.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001928/0.1321, allocations: 1.09 MB / 299.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004923/0.1371, allocations: 5.435 MB / 305.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002665/0.1397, allocations: 2.289 MB / 307.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003916/0.1436, allocations: 3.73 MB / 311.4 MB, free: 7.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002418/0.1461, allocations: 2.51 MB / 313.9 MB, free: 6.672 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008042/0.1469, allocations: 0.6115 MB / 314.5 MB, free: 6.668 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009559/0.1478, allocations: 0.8347 MB / 315.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005969/0.1484, allocations: 1.468 MB / 316.8 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001522/0.1499, allocations: 1.795 MB / 318.6 MB, free: 3.023 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002941/0.1529, allocations: 4.261 MB / 322.9 MB, free: 14.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1529, allocations: 0 / 322.9 MB, free: 14.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1529, allocations: 0 / 322.9 MB, free: 14.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001112/0.153, allocations: 4 kB / 322.9 MB, free: 14.98 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.006356/0.1594, allocations: 5.201 MB / 328.1 MB, free: 9.988 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.1594, allocations: 8.031 kB / 328.1 MB, free: 9.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002755/0.1621, allocations: 1.308 MB / 329.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002468/0.1646, allocations: 1.881 MB / 331.3 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.1648, allocations: 304.5 kB / 331.6 MB, free: 6.496 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004211/0.1652, allocations: 398.7 kB / 332 MB, free: 6.109 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003286/0.1685, allocations: 3.003 MB / 335 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.253e-05/0.1685, allocations: 10.84 kB / 335 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.1688, allocations: 164 kB / 335.1 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/0.1689, allocations: 172 kB / 335.3 MB, free: 2.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.1707, allocations: 1.201 MB / 336.5 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/0.1818, allocations: 10.62 MB / 347.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/0.1839, allocations: 1.992 MB / 349.1 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.1854, allocations: 1.148 MB / 350.3 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003362/0.1888, allocations: 2.51 MB / 352.8 MB, free: 1.586 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.1888, allocations: 55.81 kB / 352.8 MB, free: 1.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=157): time 2.685e-06/0.1888, allocations: 0 / 352.8 MB, free: 1.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=160): time 0.003922/0.1927, allocations: 2.73 MB / 355.6 MB, free: 14.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.1928, allocations: 72.7 kB / 355.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.1939, allocations: 1.538 MB / 357.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.738e-05/0.194, allocations: 49.7 kB / 357.2 MB, free: 13.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006248/0.1946, allocations: 1.623 MB / 358.8 MB, free: 11.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002601/0.1948, allocations: 0.5672 MB / 359.4 MB, free: 11.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003434/0.1952, allocations: 390.2 kB / 359.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.606e-05/0.1952, allocations: 303 kB / 360.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.1956, allocations: 243.2 kB / 360.3 MB, free: 10.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005846/0.1961, allocations: 0.9476 MB / 361.3 MB, free: 9.145 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.1972, allocations: 1.419 MB / 362.7 MB, free: 7.406 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.387e-06/0.1972, allocations: 7.938 kB / 362.7 MB, free: 7.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.001512/0.1987, allocations: 1.356 MB / 364.1 MB, free: 6.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1987, allocations: 16 kB / 364.1 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.1988, allocations: 24.53 kB / 364.1 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.199, allocations: 128.4 kB / 364.2 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009409/0.1999, allocations: 0.4992 MB / 364.7 MB, free: 5.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.2009, allocations: 1.702 MB / 366.4 MB, free: 3.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006012/0.2015, allocations: 87.94 kB / 366.5 MB, free: 3.461 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-05/0.2016, allocations: 79.92 kB / 366.6 MB, free: 3.383 MB / 314.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.0004918/0.2021, allocations: 251.9 kB / 366.8 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.2023, allocations: 191.8 kB / 367 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.2036, allocations: 1.093 MB / 368.1 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.2036, allocations: 12 kB / 368.1 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2036, allocations: 8 kB / 368.1 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.2036, allocations: 11.91 kB / 368.1 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.2067, allocations: 2.622 MB / 370.8 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2067, allocations: 0 / 370.8 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006268/0.2073, allocations: 255.7 kB / 371 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004755/0.2078, allocations: 267.6 kB / 371.3 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.716e-05/0.2078, allocations: 43.97 kB / 371.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002973/0.2108, allocations: 5.313 MB / 376.6 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2108, allocations: 8.031 kB / 376.6 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.2124, allocations: 1.453 MB / 378.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003788/0.2128, allocations: 254.4 kB / 378.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.2129, allocations: 32 kB / 378.4 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.2134, allocations: 55.97 kB / 378.4 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.2135, allocations: 129 kB / 378.6 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.517e-05/0.2136, allocations: 31.98 kB / 378.6 MB, free: 6.949 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005837/0.2142, allocations: 0.7549 MB / 379.3 MB, free: 6.172 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2142, allocations: 4 kB / 379.3 MB, free: 6.168 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001248/0.2154, allocations: 0.6679 MB / 380 MB, free: 5.5 MB / 330.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.0002334/0.2157, allocations: 160.1 kB / 380.2 MB, free: 5.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.2168, allocations: 1.061 MB / 381.2 MB, free: 4.262 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.131e-05/0.2168, allocations: 31.69 kB / 381.3 MB, free: 4.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000784/0.2176, allocations: 0.9246 MB / 382.2 MB, free: 3.266 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.2187, allocations: 0.5189 MB / 382.7 MB, free: 2.762 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006083/0.2248, allocations: 5.898 MB / 388.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006188/0.2254, allocations: 0.7741 MB / 389.4 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000681/0.2261, allocations: 315.2 kB / 389.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008231/0.2269, allocations: 0.5303 MB / 390.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of SimCode: time 7.72e-07/0.2269, allocations: 0 / 390.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of Templates: time 0.04023/0.2671, allocations: 31.66 MB / 421.9 MB, free: 11.97 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.7064323341473937]