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.001956/0.001956, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001953/0.001953, allocations: 205.1 kB / 23.72 MB, free: 4.391 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.515/1.515, allocations: 230.5 MB / 257.4 MB, free: 7.805 MB / 206.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.002149/0.002149, allocations: 67.91 kB / 378.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2329, allocations: 53.4 MB / 431.7 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04332/0.2762, allocations: 34.39 MB / 466.1 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02189/0.2981, allocations: 10.36 MB / 476.4 MB, free: 9.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007641/0.3057, allocations: 373.9 kB / 476.8 MB, free: 9.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02189/0.3276, allocations: 8.012 MB / 484.8 MB, free: 1.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.3406, allocations: 3.492 MB / 488.3 MB, free: 13.67 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008139/0.3487, allocations: 2.332 MB / 490.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0186/0.3673, allocations: 13.04 MB / 0.4919 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03768/0.405, allocations: 17.12 MB / 0.5086 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01433/0.4194, allocations: 6.978 MB / 0.5154 GB, free: 5.988 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01504/0.4344, allocations: 7.532 MB / 0.5228 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005065/0.4395, allocations: 1.945 MB / 0.5247 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008591/0.4481, allocations: 2.343 MB / 0.527 GB, free: 10.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006863/0.4549, allocations: 3.967 MB / 0.5308 GB, free: 6.164 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01509/0.47, allocations: 5.899 MB / 0.5366 GB, free: 248 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2656/0.7356, allocations: 26.08 MB / 0.5621 GB, free: 39.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.063e-05/0.7356, allocations: 0 / 0.5621 GB, free: 39.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.7356, allocations: 3.562 kB / 0.5621 GB, free: 39.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009958/0.7366, allocations: 0 / 0.5621 GB, free: 39.18 MB / 446.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.05351/0.7901, allocations: 15.24 MB / 0.5769 GB, free: 31.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.7901, allocations: 13.61 kB / 0.577 GB, free: 31.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03445/0.8246, allocations: 6.127 MB / 0.5829 GB, free: 28.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02037/0.845, allocations: 8.1 MB / 0.5908 GB, free: 23.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001046/0.846, allocations: 0.9035 MB / 0.5917 GB, free: 22.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00678/0.8528, allocations: 1.192 MB / 0.5929 GB, free: 22.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05014/0.9029, allocations: 18.92 MB / 0.6114 GB, free: 3.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000663/0.9036, allocations: 23.89 kB / 0.6114 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004471/0.9081, allocations: 0.49 MB / 0.6119 GB, free: 3.316 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005527/0.9086, allocations: 0.6421 MB / 0.6125 GB, free: 2.672 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04663/0.9552, allocations: 16.74 MB / 0.6288 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1229/1.078, allocations: 50.67 MB / 0.6783 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0212/1.099, allocations: 10.27 MB / 0.6884 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007551/1.107, allocations: 3.404 MB / 0.6917 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02324/1.13, allocations: 7.67 MB / 0.6992 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001035/1.13, allocations: 69.31 kB / 0.6992 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 9.518e-06/1.13, allocations: 4 kB / 0.6992 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04824/1.179, allocations: 17.24 MB / 0.7161 GB, free: 10.22 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/1.179, allocations: 94.47 kB / 0.7162 GB, free: 10.11 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01272/1.191, allocations: 4.787 MB / 0.7208 GB, free: 5.32 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001088/1.192, allocations: 89.7 kB / 0.7209 GB, free: 5.227 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005129/1.198, allocations: 5.651 MB / 0.7264 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002256/1.2, allocations: 1.423 MB / 0.7278 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004996/1.205, allocations: 1.338 MB / 0.7291 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001599/1.205, allocations: 305.1 kB / 0.7294 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00592/1.211, allocations: 2.906 MB / 0.7323 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008878/1.22, allocations: 5.931 MB / 0.7381 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01426/1.234, allocations: 9.453 MB / 0.7473 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.234, allocations: 32 kB / 0.7473 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2889/1.523, allocations: 9.835 MB / 0.7569 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.351e-05/1.523, allocations: 48.22 kB / 0.757 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001916/1.523, allocations: 99.28 kB / 0.7571 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002587/1.526, allocations: 0.9308 MB / 0.758 GB, free: 198.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006048/1.532, allocations: 1.591 MB / 0.7595 GB, free: 198.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/1.543, allocations: 9.682 MB / 0.769 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005866/1.549, allocations: 404.3 kB / 0.7694 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/1.55, allocations: 364.1 kB / 0.7697 GB, free: 194.8 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.008504/1.559, allocations: 4.253 MB / 0.7739 GB, free: 193.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/1.56, allocations: 0.5023 MB / 0.7744 GB, free: 193.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/1.571, allocations: 6.434 MB / 0.7806 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.767e-05/1.571, allocations: 39.22 kB / 0.7807 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/1.571, allocations: 10.75 kB / 0.7807 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.998e-05/1.571, allocations: 26.3 kB / 0.7807 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02752/1.598, allocations: 13.3 MB / 0.7937 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/1.598, allocations: 3.75 kB / 0.7937 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003009/1.601, allocations: 0.7536 MB / 0.7945 GB, free: 185.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/1.603, allocations: 0.7825 MB / 0.7952 GB, free: 185.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003794/1.604, allocations: 91.05 kB / 0.7953 GB, free: 185.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008915/1.613, allocations: 8.835 MB / 0.8039 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.613, allocations: 8 kB / 0.8039 GB, free: 177.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/1.627, allocations: 9.493 MB / 0.8132 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004194/1.631, allocations: 0.9762 MB / 0.8142 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001521/1.632, allocations: 83.89 kB / 0.8142 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003483/1.636, allocations: 212.2 kB / 0.8144 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005809/1.637, allocations: 281 kB / 0.8147 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002861/1.637, allocations: 119.3 kB / 0.8148 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005755/1.643, allocations: 3.062 MB / 0.8178 GB, free: 165.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/1.643, allocations: 4 kB / 0.8178 GB, free: 165.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01043/1.653, allocations: 1.873 MB / 0.8197 GB, free: 163.8 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.001055/1.654, allocations: 257.9 kB / 0.8199 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01174/1.666, allocations: 7.222 MB / 0.8269 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/1.666, allocations: 0 / 0.8269 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005291/1.671, allocations: 3.182 MB / 0.8301 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008232/1.679, allocations: 1.17 MB / 0.8312 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04563/1.725, allocations: 20.06 MB / 0.8508 GB, free: 132.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01379/1.739, allocations: 6.93 MB / 0.8576 GB, free: 125.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005935/1.745, allocations: 2.115 MB / 0.8596 GB, free: 123.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/1.746, allocations: 407.3 kB / 0.86 GB, free: 122.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.363e-06/1.746, allocations: 0 / 0.86 GB, free: 122.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.1177/1.863, allocations: 77.35 MB / 0.9355 GB, free: 46.22 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.920685624703765]