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.001841/0.001841, allocations: 80.8 kB / 20.49 MB, free: 1.211 MB / 14.72 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.002156/0.002156, allocations: 168.2 kB / 23.75 MB, free: 4.227 MB / 14.72 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 1.481/1.481, allocations: 177.1 MB / 204 MB, free: 9.254 MB / 190.1 MB " [Timeout remaining time 178] 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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 62.45 kB / 324.8 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1009, allocations: 53.39 MB / 378.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04297/0.1439, allocations: 34.39 MB / 412.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02388/0.1678, allocations: 10.35 MB / 422.9 MB, free: 2.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009503/0.1773, allocations: 370 kB / 423.3 MB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02261/0.1999, allocations: 8.41 MB / 431.7 MB, free: 10.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01332/0.2132, allocations: 3.484 MB / 435.2 MB, free: 6.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009083/0.2223, allocations: 2.346 MB / 437.6 MB, free: 4.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01985/0.2422, allocations: 13.04 MB / 450.6 MB, free: 7.098 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03282/0.275, allocations: 17.12 MB / 467.7 MB, free: 5.816 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2598/0.5348, allocations: 10.65 MB / 478.4 MB, free: 22.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01656/0.5513, allocations: 7.53 MB / 485.9 MB, free: 21.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006467/0.5578, allocations: 1.951 MB / 487.8 MB, free: 21.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00848/0.5663, allocations: 2.335 MB / 490.2 MB, free: 21.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007273/0.5736, allocations: 3.968 MB / 494.1 MB, free: 21.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01304/0.5866, allocations: 5.911 MB / 0.4883 GB, free: 19.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02844/0.615, allocations: 26.07 MB / 0.5138 GB, free: 6.391 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.6151, allocations: 0 / 0.5138 GB, free: 6.391 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6151, allocations: 0.9688 kB / 0.5138 GB, free: 6.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007867/0.6158, allocations: 0 / 0.5138 GB, free: 6.391 MB / 430.1 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.04369/0.6595, allocations: 15.25 MB / 0.5287 GB, free: 12.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.6596, allocations: 11.98 kB / 0.5287 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03646/0.696, allocations: 6.131 MB / 0.5347 GB, free: 6.543 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02377/0.7198, allocations: 8.105 MB / 0.5426 GB, free: 14.72 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001367/0.7212, allocations: 0.9052 MB / 0.5435 GB, free: 13.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00529/0.7265, allocations: 1.199 MB / 0.5447 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05411/0.7806, allocations: 18.91 MB / 0.5631 GB, free: 9.613 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006057/0.7812, allocations: 20.52 kB / 0.5631 GB, free: 9.594 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005294/0.7865, allocations: 497.7 kB / 0.5636 GB, free: 9.117 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007705/0.7872, allocations: 0.646 MB / 0.5643 GB, free: 8.469 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04259/0.8298, allocations: 16.75 MB / 0.5806 GB, free: 7.715 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1168/0.9466, allocations: 50.7 MB / 0.6301 GB, free: 4.848 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01988/0.9665, allocations: 10.26 MB / 0.6401 GB, free: 12.24 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006604/0.9731, allocations: 3.408 MB / 0.6435 GB, free: 8.828 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01744/0.9905, allocations: 7.674 MB / 0.651 GB, free: 1.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.335e-05/0.9906, allocations: 69.31 kB / 0.651 GB, free: 1.172 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 8.215e-06/0.9906, allocations: 0 / 0.651 GB, free: 1.172 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.0416/1.032, allocations: 17.24 MB / 0.6679 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/1.032, allocations: 102.4 kB / 0.668 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009799/1.042, allocations: 4.791 MB / 0.6726 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006603/1.043, allocations: 85.7 kB / 0.6727 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.005291/1.048, allocations: 5.652 MB / 0.6782 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002242/1.05, allocations: 1.417 MB / 0.6796 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004207/1.054, allocations: 1.334 MB / 0.6809 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002564/1.055, allocations: 301.1 kB / 0.6812 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2447/1.299, allocations: 2.909 MB / 0.6841 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007872/1.307, allocations: 5.929 MB / 0.6898 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01457/1.322, allocations: 9.457 MB / 0.6991 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003774/1.322, allocations: 28.88 kB / 0.6991 GB, free: 191.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02343/1.346, allocations: 9.833 MB / 0.7087 GB, free: 188 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/1.346, allocations: 47.31 kB / 0.7088 GB, free: 188 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002605/1.346, allocations: 101.2 kB / 0.7089 GB, free: 188 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002486/1.349, allocations: 0.9386 MB / 0.7098 GB, free: 187.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006267/1.355, allocations: 1.591 MB / 0.7113 GB, free: 187.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/1.366, allocations: 9.681 MB / 0.7208 GB, free: 181.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007911/1.374, allocations: 404.2 kB / 0.7212 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001751/1.376, allocations: 358.7 kB / 0.7215 GB, free: 181.1 MB / 0.5762 GB 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.009254/1.385, allocations: 4.254 MB / 0.7257 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001714/1.387, allocations: 0.5063 MB / 0.7262 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/1.399, allocations: 6.433 MB / 0.7324 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/1.399, allocations: 42.38 kB / 0.7325 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-05/1.399, allocations: 10.75 kB / 0.7325 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.12e-05/1.399, allocations: 19.92 kB / 0.7325 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02916/1.428, allocations: 13.31 MB / 0.7455 GB, free: 166.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.428, allocations: 0 / 0.7455 GB, free: 166.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00344/1.432, allocations: 0.7493 MB / 0.7462 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/1.434, allocations: 0.7833 MB / 0.747 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005899/1.434, allocations: 100 kB / 0.7471 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009896/1.444, allocations: 8.833 MB / 0.7557 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.444, allocations: 4 kB / 0.7557 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/1.46, allocations: 9.492 MB / 0.765 GB, free: 149 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003048/1.463, allocations: 0.9823 MB / 0.766 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001464/1.465, allocations: 78.89 kB / 0.766 GB, free: 148.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003185/1.468, allocations: 219.8 kB / 0.7662 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007564/1.469, allocations: 278.6 kB / 0.7665 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004228/1.469, allocations: 120 kB / 0.7666 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.006388/1.476, allocations: 3.056 MB / 0.7696 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/1.476, allocations: 0.75 kB / 0.7696 GB, free: 144.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009232/1.485, allocations: 1.874 MB / 0.7714 GB, free: 142.6 MB / 0.5762 GB 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.001235/1.486, allocations: 270.3 kB / 0.7717 GB, free: 142.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01353/1.5, allocations: 7.221 MB / 0.7787 GB, free: 135.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.554e-05/1.5, allocations: 0 / 0.7787 GB, free: 135.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006017/1.506, allocations: 3.176 MB / 0.7818 GB, free: 131.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007853/1.513, allocations: 1.163 MB / 0.783 GB, free: 130.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04291/1.556, allocations: 20.07 MB / 0.8026 GB, free: 110.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01337/1.57, allocations: 6.928 MB / 0.8093 GB, free: 103.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.007147/1.577, allocations: 2.107 MB / 0.8114 GB, free: 101.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001786/1.579, allocations: 404.4 kB / 0.8118 GB, free: 101.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.532e-06/1.579, allocations: 3.938 kB / 0.8118 GB, free: 101.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.1161/1.695, allocations: 65.44 MB / 0.8757 GB, free: 36.38 MB / 0.5762 GB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.887608738616109]