Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008847/0.0008847, allocations: 88.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008879/0.0008879, allocations: 165.1 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8976/0.8976, allocations: 177 MB / 205.2 MB, free: 5.02 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.488e-06/1.076e-05, allocations: 6.312 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1163/0.1163, allocations: 35.68 MB / 309.1 MB, free: 9.871 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01593/0.1323, allocations: 10.72 MB / 319.8 MB, free: 2.105 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00349/0.1358, allocations: 336.5 kB / 320.2 MB, free: 1.992 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008787/0.1446, allocations: 9.7 MB / 329.9 MB, free: 9.629 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005997/0.1505, allocations: 4.146 MB / 334 MB, free: 5.461 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003055/0.1536, allocations: 2.465 MB / 336.5 MB, free: 3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009826/0.1634, allocations: 14.89 MB / 351.4 MB, free: 4.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01567/0.1791, allocations: 17.38 MB / 368.7 MB, free: 2.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008311/0.1874, allocations: 10.99 MB / 379.7 MB, free: 7.473 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005695/0.1931, allocations: 7.774 MB / 387.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001473/0.1946, allocations: 2.02 MB / 389.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.1969, allocations: 2.437 MB / 392 MB, free: 11.23 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002157/0.199, allocations: 4.188 MB / 396.1 MB, free: 7.027 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003574/0.2026, allocations: 5.306 MB / 401.4 MB, free: 1.711 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008919/0.2115, allocations: 12.91 MB / 414.4 MB, free: 4.766 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2115, allocations: 3.984 kB / 414.4 MB, free: 4.762 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2115, allocations: 0 / 414.4 MB, free: 4.762 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.384e-05/0.2116, allocations: 0 / 414.4 MB, free: 4.762 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.01755/0.2292, allocations: 15.2 MB / 429.6 MB, free: 5.453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.2292, allocations: 15.92 kB / 429.6 MB, free: 5.438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2058/0.435, allocations: 6.883 MB / 436.5 MB, free: 79.32 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008646/0.4436, allocations: 4.658 MB / 441.1 MB, free: 78.98 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004845/0.4441, allocations: 0.9007 MB / 442 MB, free: 78.95 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001433/0.4455, allocations: 1.202 MB / 443.2 MB, free: 78.94 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/0.4558, allocations: 9.685 MB / 452.9 MB, free: 77.97 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001809/0.456, allocations: 21.8 kB / 452.9 MB, free: 77.96 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007908/0.4568, allocations: 0.4911 MB / 453.4 MB, free: 77.96 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000349/0.4571, allocations: 0.6586 MB / 454.1 MB, free: 77.94 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006302/0.4634, allocations: 4.622 MB / 458.7 MB, free: 77.63 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03149/0.4949, allocations: 37.5 MB / 496.2 MB, free: 46.43 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006864/0.5018, allocations: 6.616 MB / 0.491 GB, free: 39.98 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.5031, allocations: 1.403 MB / 0.4924 GB, free: 38.63 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006618/0.5097, allocations: 5.018 MB / 0.4973 GB, free: 33.93 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.5098, allocations: 79.88 kB / 0.4974 GB, free: 33.84 MB / 378.8 MB Notification: Performance of pre-optimization done (n=402): time 5.43e-06/0.5098, allocations: 0 / 0.4974 GB, free: 33.84 MB / 378.8 MB Notification: Performance of matching and sorting (n=412): time 0.01337/0.5231, allocations: 8.671 MB / 0.5058 GB, free: 25.59 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.5232, allocations: 124.4 kB / 0.506 GB, free: 25.45 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.5251, allocations: 3.368 MB / 0.5092 GB, free: 22.75 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/0.5253, allocations: 89.7 kB / 0.5093 GB, free: 22.66 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00106/0.5264, allocations: 4.96 MB / 0.5142 GB, free: 17.87 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004814/0.5268, allocations: 1.485 MB / 0.5156 GB, free: 16.47 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009759/0.5278, allocations: 1.174 MB / 0.5168 GB, free: 15.42 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 1.977e-05/0.5278, allocations: 305.1 kB / 0.5171 GB, free: 15.12 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/0.5287, allocations: 0.8181 MB / 0.5179 GB, free: 14.29 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/0.53, allocations: 3.201 MB / 0.521 GB, free: 10.12 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002638/0.5327, allocations: 4.654 MB / 0.5255 GB, free: 4.789 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-05/0.5327, allocations: 24 kB / 0.5256 GB, free: 4.766 MB / 378.8 MB Notification: Performance of matching and sorting (n=828) (initialization): time 0.004245/0.537, allocations: 4.375 MB / 0.5298 GB, free: 0.9141 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/0.537, allocations: 45.25 kB / 0.5299 GB, free: 0.8711 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-05/0.537, allocations: 80 kB / 0.5299 GB, free: 0.793 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001538/0.5386, allocations: 0.9427 MB / 0.5309 GB, free: 15.85 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002566/0.5411, allocations: 1.345 MB / 0.5322 GB, free: 14.61 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005999/0.5471, allocations: 8.121 MB / 0.5401 GB, free: 6.312 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.5489, allocations: 244 kB / 0.5403 GB, free: 6.074 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003012/0.5492, allocations: 265.7 kB / 0.5406 GB, free: 5.816 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001618/0.5508, allocations: 0.5419 MB / 0.5411 GB, free: 5.367 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006105/0.5515, allocations: 439.5 kB / 0.5415 GB, free: 4.938 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003931/0.5554, allocations: 3.009 MB / 0.5445 GB, free: 1.938 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001816/0.5572, allocations: 1.387 MB / 0.5458 GB, free: 0.5547 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-05/0.5572, allocations: 12 kB / 0.5459 GB, free: 0.543 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.674e-05/0.5572, allocations: 23.86 kB / 0.5459 GB, free: 0.5195 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/0.568, allocations: 8.715 MB / 0.5544 GB, free: 9.062 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.568, allocations: 8 kB / 0.5544 GB, free: 9.055 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.5694, allocations: 0.5919 MB / 0.555 GB, free: 8.496 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001902/0.5713, allocations: 0.97 MB / 0.5559 GB, free: 7.531 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.5715, allocations: 95.95 kB / 0.556 GB, free: 7.438 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007643/0.5791, allocations: 11.53 MB / 0.5673 GB, free: 11.59 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5791, allocations: 7 kB / 0.5673 GB, free: 11.59 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004843/0.5839, allocations: 3.796 MB / 0.571 GB, free: 7.777 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/0.5851, allocations: 0.5963 MB / 0.5716 GB, free: 7.18 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004042/0.5855, allocations: 78.41 kB / 0.5716 GB, free: 7.105 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.5866, allocations: 124 kB / 0.5718 GB, free: 6.984 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003928/0.5869, allocations: 306.5 kB / 0.5721 GB, free: 6.688 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/0.5871, allocations: 91.95 kB / 0.5721 GB, free: 6.598 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.00139/0.5885, allocations: 1.616 MB / 0.5737 GB, free: 5.18 MB / 426.8 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5885, allocations: 0 / 0.5737 GB, free: 5.18 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004262/0.5928, allocations: 1.949 MB / 0.5756 GB, free: 3.227 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004282/0.5932, allocations: 285 kB / 0.5759 GB, free: 2.984 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.109/0.7022, allocations: 3.751 MB / 0.5796 GB, free: 113.2 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0002221/0.7024, allocations: 78.06 kB / 0.5796 GB, free: 113.2 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003208/0.7056, allocations: 2.362 MB / 0.5819 GB, free: 112.4 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003656/0.7093, allocations: 1.29 MB / 0.5832 GB, free: 112.4 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01836/0.7276, allocations: 17.18 MB / 0.6 GB, free: 105.8 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001799/0.7294, allocations: 2.276 MB / 0.6022 GB, free: 105.5 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002016/0.7314, allocations: 0.8189 MB / 0.603 GB, free: 105.3 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/0.7333, allocations: 1.176 MB / 0.6041 GB, free: 105.3 MB / 426.8 MB Notification: Performance of SimCode: time 1.042e-06/0.7333, allocations: 0 / 0.6041 GB, free: 105.3 MB / 426.8 MB Notification: Performance of Templates: time 0.09057/0.8239, allocations: 80.29 MB / 0.6826 GB, free: 38.12 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.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: 4.968893375247717]