Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.001618/0.001618, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.001852/0.001852, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 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 1.477/1.477, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.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_4.1.0_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_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 47.92 kB / 379 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2431, allocations: 53.37 MB / 432.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04416/0.2873, allocations: 34.38 MB / 466.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02419/0.3115, allocations: 10.36 MB / 477.1 MB, free: 9.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008245/0.3197, allocations: 373.9 kB / 477.5 MB, free: 9.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02121/0.3409, allocations: 8.024 MB / 485.5 MB, free: 1.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01237/0.3533, allocations: 3.491 MB / 489 MB, free: 13.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007761/0.3611, allocations: 2.327 MB / 491.3 MB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01915/0.3802, allocations: 13.03 MB / 0.4926 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03456/0.4148, allocations: 17.12 MB / 0.5093 GB, free: 13.2 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01332/0.4281, allocations: 6.986 MB / 0.5161 GB, free: 6.191 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01366/0.4418, allocations: 7.528 MB / 0.5234 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005356/0.4471, allocations: 1.953 MB / 0.5254 GB, free: 12.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007936/0.4551, allocations: 2.343 MB / 0.5276 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006446/0.4615, allocations: 3.97 MB / 0.5315 GB, free: 6.359 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0126/0.4741, allocations: 5.903 MB / 0.5373 GB, free: 444 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2569/0.731, allocations: 26.07 MB / 0.5627 GB, free: 39.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.731, allocations: 0 / 0.5627 GB, free: 39.22 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.731, allocations: 0.8125 kB / 0.5627 GB, free: 39.22 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008091/0.7318, allocations: 0 / 0.5627 GB, free: 39.22 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.04703/0.7788, allocations: 15.25 MB / 0.5776 GB, free: 31.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.7788, allocations: 14.5 kB / 0.5776 GB, free: 31.13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03351/0.8124, allocations: 6.117 MB / 0.5836 GB, free: 28.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01961/0.832, allocations: 8.101 MB / 0.5915 GB, free: 23.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008054/0.8328, allocations: 0.9028 MB / 0.5924 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005204/0.838, allocations: 1.201 MB / 0.5936 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04774/0.8857, allocations: 18.92 MB / 0.6121 GB, free: 3.898 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006524/0.8864, allocations: 15.91 kB / 0.6121 GB, free: 3.883 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004606/0.891, allocations: 0.4969 MB / 0.6126 GB, free: 3.398 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005493/0.8915, allocations: 0.6382 MB / 0.6132 GB, free: 2.758 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04267/0.9342, allocations: 16.74 MB / 0.6295 GB, free: 2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1139/1.048, allocations: 50.66 MB / 0.679 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01981/1.068, allocations: 10.28 MB / 0.689 GB, free: 6.57 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006479/1.074, allocations: 3.404 MB / 0.6924 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02095/1.095, allocations: 7.669 MB / 0.6999 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.646e-05/1.095, allocations: 69.31 kB / 0.6999 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 7.364e-06/1.095, allocations: 0 / 0.6999 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04434/1.14, allocations: 17.24 MB / 0.7168 GB, free: 10.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.004e-05/1.14, allocations: 94.47 kB / 0.7169 GB, free: 10.2 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01049/1.15, allocations: 4.791 MB / 0.7215 GB, free: 5.402 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000854/1.151, allocations: 93.7 kB / 0.7216 GB, free: 5.305 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004875/1.156, allocations: 5.646 MB / 0.7271 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002102/1.158, allocations: 1.418 MB / 0.7285 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004357/1.162, allocations: 1.338 MB / 0.7298 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001274/1.163, allocations: 305.1 kB / 0.7301 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00587/1.168, allocations: 2.91 MB / 0.733 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00865/1.177, allocations: 5.927 MB / 0.7388 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/1.193, allocations: 9.461 MB / 0.748 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000126/1.193, allocations: 28 kB / 0.748 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2694/1.462, allocations: 9.841 MB / 0.7576 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.484e-05/1.462, allocations: 47.59 kB / 0.7577 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002021/1.462, allocations: 100.3 kB / 0.7578 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002473/1.465, allocations: 0.9315 MB / 0.7587 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00589/1.471, allocations: 1.592 MB / 0.7602 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/1.481, allocations: 9.671 MB / 0.7697 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005378/1.486, allocations: 414.7 kB / 0.7701 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/1.488, allocations: 354.7 kB / 0.7704 GB, free: 194.9 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.006987/1.495, allocations: 4.248 MB / 0.7746 GB, free: 193.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.496, allocations: 0.5116 MB / 0.7751 GB, free: 193.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009287/1.505, allocations: 6.426 MB / 0.7813 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.328e-05/1.505, allocations: 41.66 kB / 0.7814 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/1.505, allocations: 10.97 kB / 0.7814 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/1.505, allocations: 26.36 kB / 0.7814 GB, free: 191 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02318/1.528, allocations: 13.3 MB / 0.7944 GB, free: 185.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/1.528, allocations: 3.719 kB / 0.7944 GB, free: 185.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00303/1.531, allocations: 0.7532 MB / 0.7951 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002037/1.533, allocations: 0.7911 MB / 0.7959 GB, free: 185.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004016/1.534, allocations: 88.91 kB / 0.796 GB, free: 185.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008606/1.542, allocations: 8.834 MB / 0.8046 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.542, allocations: 4 kB / 0.8046 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/1.556, allocations: 9.49 MB / 0.8139 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002998/1.559, allocations: 0.9865 MB / 0.8149 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009197/1.56, allocations: 74.06 kB / 0.8149 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002355/1.562, allocations: 222.9 kB / 0.8151 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005029/1.563, allocations: 284 kB / 0.8154 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002305/1.563, allocations: 117.9 kB / 0.8155 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004424/1.568, allocations: 3.054 MB / 0.8185 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.568, allocations: 0 / 0.8185 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007281/1.575, allocations: 1.883 MB / 0.8203 GB, free: 164 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.0007841/1.576, allocations: 266.5 kB / 0.8206 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01021/1.586, allocations: 7.219 MB / 0.8277 GB, free: 157 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.586, allocations: 0 / 0.8277 GB, free: 157 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00454/1.59, allocations: 3.176 MB / 0.8308 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005521/1.596, allocations: 1.172 MB / 0.8319 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03152/1.627, allocations: 19.79 MB / 0.8512 GB, free: 132.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008056/1.636, allocations: 6.706 MB / 0.8578 GB, free: 126.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00194/1.637, allocations: 475.3 kB / 0.8582 GB, free: 125.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.512e-06/1.637, allocations: 0 / 0.8582 GB, free: 125.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.8753/2.513, allocations: 465.8 MB / 1.313 GB, free: 120.4 MB / 0.5919 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 22.067719152197242]