Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.0009471/0.0009471, allocations: 84.25 kB / 22.21 MB, free: 2.285 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.001025/0.001025, allocations: 162.6 kB / 25.61 MB, free: 8.441 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.8577/0.8577, allocations: 177 MB / 205.9 MB, free: 4.449 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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 274.2 MB, free: 4.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/2.014e-05, allocations: 4.938 kB / 274.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03483/0.03485, allocations: 37.6 MB / 311.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.05618, allocations: 10.54 MB / 322.3 MB, free: 3.902 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005285/0.06146, allocations: 377.9 kB / 322.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009453/0.07092, allocations: 8.829 MB / 331.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007635/0.07855, allocations: 3.576 MB / 335.1 MB, free: 7.062 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004182/0.08273, allocations: 2.367 MB / 337.4 MB, free: 4.695 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.1392/0.2219, allocations: 13.5 MB / 350.9 MB, free: 17.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02567/0.2476, allocations: 17.19 MB / 368.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01945/0.267, allocations: 10.66 MB / 378.8 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01089/0.2779, allocations: 7.459 MB / 386.3 MB, free: 4.535 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005093/0.283, allocations: 1.938 MB / 388.2 MB, free: 2.598 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007297/0.2903, allocations: 2.338 MB / 390.5 MB, free: 380 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006729/0.297, allocations: 4.076 MB / 394.6 MB, free: 12.95 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01158/0.3086, allocations: 5.117 MB / 399.7 MB, free: 8.062 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01991/0.3285, allocations: 12.57 MB / 412.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.3285, allocations: 0 / 412.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3285, allocations: 0 / 412.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000509/0.329, allocations: 1.531 kB / 412.3 MB, free: 12.36 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03159/0.3606, allocations: 15.49 MB / 427.8 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.3607, allocations: 12.03 kB / 427.8 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0264/0.3871, allocations: 6.2 MB / 434 MB, free: 7.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01238/0.3995, allocations: 7.272 MB / 441.3 MB, free: 372 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008201/0.4003, allocations: 0.9051 MB / 442.2 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003264/0.4036, allocations: 1.209 MB / 443.4 MB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0274/0.431, allocations: 9.421 MB / 452.8 MB, free: 5.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003888/0.4313, allocations: 23.02 kB / 452.8 MB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001745/0.4331, allocations: 0.4949 MB / 453.3 MB, free: 4.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004716/0.4336, allocations: 0.6343 MB / 454 MB, free: 4.109 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01548/0.449, allocations: 4.264 MB / 458.2 MB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.348/0.7971, allocations: 46.91 MB / 0.4933 GB, free: 65.73 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007194/0.8043, allocations: 7.831 MB / 0.5009 GB, free: 65.31 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.8059, allocations: 1.467 MB / 0.5024 GB, free: 65.22 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008016/0.814, allocations: 5.352 MB / 0.5076 GB, free: 64.79 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.814, allocations: 71.67 kB / 0.5077 GB, free: 64.75 MB / 410.8 MB Notification: Performance of pre-optimization done (n=349): time 4.368e-06/0.814, allocations: 6.625 kB / 0.5077 GB, free: 64.75 MB / 410.8 MB Notification: Performance of matching and sorting (n=389): time 0.01571/0.8297, allocations: 8.791 MB / 0.5163 GB, free: 63.41 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.8298, allocations: 93.61 kB / 0.5163 GB, free: 63.35 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003754/0.8335, allocations: 4.359 MB / 0.5206 GB, free: 62.79 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/0.8337, allocations: 87.11 kB / 0.5207 GB, free: 62.76 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001995/0.8357, allocations: 5.951 MB / 0.5265 GB, free: 60.23 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006366/0.8363, allocations: 1.456 MB / 0.5279 GB, free: 59.34 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.8376, allocations: 1.488 MB / 0.5294 GB, free: 59.2 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 4.282e-05/0.8376, allocations: 480.7 kB / 0.5298 GB, free: 58.73 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008373/0.8384, allocations: 0.739 MB / 0.5305 GB, free: 58.71 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002017/0.8405, allocations: 5.238 MB / 0.5357 GB, free: 53.21 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003989/0.8445, allocations: 6.718 MB / 0.5422 GB, free: 47.64 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.52e-05/0.8445, allocations: 36.22 kB / 0.5423 GB, free: 47.64 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.006419/0.8509, allocations: 5.604 MB / 0.5477 GB, free: 47.05 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/0.851, allocations: 47.88 kB / 0.5478 GB, free: 47.05 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.239e-05/0.851, allocations: 98.94 kB / 0.5479 GB, free: 47.05 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001528/0.8525, allocations: 0.8589 MB / 0.5487 GB, free: 46.95 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/0.8552, allocations: 1.469 MB / 0.5501 GB, free: 46.95 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005496/0.8607, allocations: 8.177 MB / 0.5581 GB, free: 41.18 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004216/0.8649, allocations: 283.9 kB / 0.5584 GB, free: 41.01 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005343/0.8655, allocations: 302 kB / 0.5587 GB, free: 40.78 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002688/0.8682, allocations: 0.6286 MB / 0.5593 GB, free: 40.45 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007636/0.8689, allocations: 0.6276 MB / 0.5599 GB, free: 39.86 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003834/0.8728, allocations: 3.273 MB / 0.5631 GB, free: 37.91 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.8728, allocations: 40 kB / 0.5632 GB, free: 37.87 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.8728, allocations: 8 kB / 0.5632 GB, free: 37.86 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.253e-05/0.8728, allocations: 23.36 kB / 0.5632 GB, free: 37.86 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/0.8877, allocations: 8.665 MB / 0.5716 GB, free: 33.39 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.8877, allocations: 4 kB / 0.5716 GB, free: 33.39 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002161/0.8899, allocations: 0.6495 MB / 0.5723 GB, free: 32.89 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.8918, allocations: 0.7079 MB / 0.573 GB, free: 32.4 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002517/0.8921, allocations: 87.16 kB / 0.5731 GB, free: 32.37 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005597/0.8977, allocations: 7.753 MB / 0.5806 GB, free: 25.08 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.8977, allocations: 17.58 kB / 0.5806 GB, free: 25.07 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006797/0.9045, allocations: 4.02 MB / 0.5846 GB, free: 21.02 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/0.9063, allocations: 0.8322 MB / 0.5854 GB, free: 20.18 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000526/0.9068, allocations: 72 kB / 0.5855 GB, free: 20.11 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.9082, allocations: 108 kB / 0.5856 GB, free: 20.01 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004908/0.9087, allocations: 286 kB / 0.5858 GB, free: 19.73 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002112/0.9089, allocations: 87.97 kB / 0.5859 GB, free: 19.64 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002415/0.9113, allocations: 1.899 MB / 0.5878 GB, free: 17.94 MB / 410.8 MB Notification: Performance of sort global known variables: time 8e-08/0.9113, allocations: 0 / 0.5878 GB, free: 17.94 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.006329/0.9177, allocations: 1.863 MB / 0.5896 GB, free: 16.08 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005977/0.9183, allocations: 274.6 kB / 0.5898 GB, free: 15.84 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.006607/0.9249, allocations: 4.273 MB / 0.594 GB, free: 11.88 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.9249, allocations: 0 / 0.594 GB, free: 11.88 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002655/0.9275, allocations: 2.122 MB / 0.5961 GB, free: 9.809 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004582/0.9321, allocations: 1.203 MB / 0.5973 GB, free: 8.656 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02391/0.956, allocations: 16.98 MB / 0.6139 GB, free: 7.57 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002611/0.9586, allocations: 3.079 MB / 0.6169 GB, free: 4.461 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002764/0.9614, allocations: 0.8081 MB / 0.6176 GB, free: 3.648 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002089/0.9635, allocations: 1.251 MB / 0.6189 GB, free: 2.395 MB / 426.8 MB Notification: Performance of SimCode: time 1.152e-06/0.9635, allocations: 0 / 0.6189 GB, free: 2.395 MB / 426.8 MB Notification: Performance of Templates: time 0.2168/1.18, allocations: 71.44 MB / 0.6886 GB, free: 88.94 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.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: 5.673005033284426]