Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001838/0.001838, allocations: 121.5 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002113/0.002113, allocations: 190.9 kB / 21.39 MB, free: 1.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 207.6 MB / 231.8 MB, free: 4.113 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 55.91 kB / 342.8 MB, free: 9.652 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09427, allocations: 49.12 MB / 391.9 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04691/0.1412, allocations: 40.18 MB / 432.1 MB, free: 12 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02414/0.1653, allocations: 10.57 MB / 442.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009625/0.1749, allocations: 263.1 kB / 442.9 MB, free: 5.145 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02246/0.1974, allocations: 8.66 MB / 451.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01344/0.2108, allocations: 3.718 MB / 455.3 MB, free: 8.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008606/0.2194, allocations: 2.397 MB / 457.7 MB, free: 6.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2292/0.4486, allocations: 13.41 MB / 471.1 MB, free: 7.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02793/0.4765, allocations: 19.68 MB / 490.8 MB, free: 4.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01289/0.4894, allocations: 7.065 MB / 497.9 MB, free: 1.289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01275/0.5022, allocations: 8.156 MB / 0.4942 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00517/0.5074, allocations: 1.993 MB / 0.4961 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007762/0.5151, allocations: 2.389 MB / 0.4984 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006801/0.5219, allocations: 4.173 MB / 0.5025 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01461/0.5365, allocations: 7.831 MB / 0.5102 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03575/0.5723, allocations: 26.49 MB / 0.536 GB, free: 6.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.5723, allocations: 0 / 0.536 GB, free: 6.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5723, allocations: 0 / 0.536 GB, free: 6.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006178/0.5729, allocations: 0 / 0.536 GB, free: 6.34 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04772/0.6206, allocations: 15.91 MB / 0.5516 GB, free: 6.414 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.6207, allocations: 8.031 kB / 0.5516 GB, free: 6.406 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05284/0.6735, allocations: 9.173 MB / 0.5605 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01937/0.6929, allocations: 7.531 MB / 0.5679 GB, free: 6.102 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00117/0.694, allocations: 0.9415 MB / 0.5688 GB, free: 5.172 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006617/0.7007, allocations: 1.241 MB / 0.57 GB, free: 3.945 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06349/0.7642, allocations: 20.15 MB / 0.5897 GB, free: 15.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000662/0.7648, allocations: 23.84 kB / 0.5897 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004497/0.7693, allocations: 0.5128 MB / 0.5902 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009606/0.7703, allocations: 0.7293 MB / 0.5909 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04916/0.8194, allocations: 18.98 MB / 0.6095 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4882/1.308, allocations: 62.8 MB / 0.6708 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03418/1.342, allocations: 56.5 MB / 0.726 GB, free: 99.14 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008919/1.351, allocations: 3.739 MB / 0.7296 GB, free: 99.06 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0274/1.378, allocations: 11.37 MB / 0.7407 GB, free: 95.15 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/1.378, allocations: 68.59 kB / 0.7408 GB, free: 95.09 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 7.134e-06/1.378, allocations: 7.562 kB / 0.7408 GB, free: 95.08 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.03708/1.415, allocations: 18.27 MB / 0.7586 GB, free: 86.39 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/1.415, allocations: 95.41 kB / 0.7587 GB, free: 86.32 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01039/1.426, allocations: 5.472 MB / 0.7641 GB, free: 83.52 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008016/1.427, allocations: 89.48 kB / 0.7642 GB, free: 83.44 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003396/1.43, allocations: 6.096 MB / 0.7701 GB, free: 78.62 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001298/1.431, allocations: 1.44 MB / 0.7715 GB, free: 77.38 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002288/1.434, allocations: 1.514 MB / 0.773 GB, free: 76.51 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.079e-05/1.434, allocations: 309.1 kB / 0.7733 GB, free: 76.21 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003956/1.438, allocations: 3.077 MB / 0.7763 GB, free: 74.59 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005926/1.443, allocations: 6.756 MB / 0.7829 GB, free: 67.89 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01191/1.455, allocations: 10.58 MB / 0.7932 GB, free: 55.55 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000176/1.456, allocations: 36 kB / 0.7933 GB, free: 55.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02078/1.476, allocations: 10.8 MB / 0.8038 GB, free: 44.66 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001672/1.476, allocations: 60 kB / 0.8039 GB, free: 44.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002146/1.477, allocations: 128 kB / 0.804 GB, free: 44.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002611/1.479, allocations: 0.9772 MB / 0.8049 GB, free: 43.48 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006453/1.486, allocations: 1.813 MB / 0.8067 GB, free: 41.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/1.496, allocations: 10.25 MB / 0.8167 GB, free: 31 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006375/1.503, allocations: 447.5 kB / 0.8172 GB, free: 30.56 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0013/1.504, allocations: 420 kB / 0.8176 GB, free: 30.15 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007573/1.512, allocations: 4.468 MB / 0.8219 GB, free: 25.66 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001647/1.513, allocations: 0.5705 MB / 0.8225 GB, free: 25.09 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/1.524, allocations: 6.5 MB / 0.8288 GB, free: 18.54 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.276e-05/1.524, allocations: 40 kB / 0.8289 GB, free: 18.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.672e-05/1.524, allocations: 8 kB / 0.8289 GB, free: 18.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.546e-05/1.524, allocations: 23.92 kB / 0.8289 GB, free: 18.47 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02843/1.553, allocations: 15.92 MB / 0.8444 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.511e-05/1.553, allocations: 4 kB / 0.8444 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003014/1.556, allocations: 0.761 MB / 0.8452 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/1.558, allocations: 0.7846 MB / 0.8459 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002882/1.558, allocations: 83.97 kB / 0.846 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01166/1.57, allocations: 9.346 MB / 0.8552 GB, free: 7.121 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.57, allocations: 4 kB / 0.8552 GB, free: 7.117 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2471/1.817, allocations: 9.535 MB / 0.8645 GB, free: 179.1 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00339/1.82, allocations: 1.104 MB / 0.8655 GB, free: 179.1 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/1.822, allocations: 76.83 kB / 0.8656 GB, free: 179.1 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003082/1.825, allocations: 220.9 kB / 0.8658 GB, free: 179.1 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008581/1.826, allocations: 262.3 kB / 0.8661 GB, free: 179.1 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003259/1.826, allocations: 114 kB / 0.8662 GB, free: 179.1 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.008985/1.835, allocations: 3.602 MB / 0.8697 GB, free: 178.8 MB / 0.5451 GB Notification: Performance of sort global known variables: time 1.1e-07/1.835, allocations: 0 / 0.8697 GB, free: 178.8 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.01103/1.846, allocations: 1.985 MB / 0.8716 GB, free: 178.6 MB / 0.5451 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009783/1.847, allocations: 259.3 kB / 0.8719 GB, free: 178.5 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01234/1.859, allocations: 7.746 MB / 0.8795 GB, free: 175.4 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.859, allocations: 0 / 0.8795 GB, free: 175.4 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.005202/1.865, allocations: 3.302 MB / 0.8827 GB, free: 173.8 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007964/1.872, allocations: 1.315 MB / 0.884 GB, free: 173.3 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03556/1.908, allocations: 21.07 MB / 0.9045 GB, free: 163.9 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01186/1.92, allocations: 7.597 MB / 0.912 GB, free: 161.3 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.01108/1.931, allocations: 2.363 MB / 0.9143 GB, free: 161 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002719/1.934, allocations: 428.6 kB / 0.9147 GB, free: 160.9 MB / 0.5451 GB Notification: Performance of SimCode: time 1.683e-06/1.934, allocations: 0 / 0.9147 GB, free: 160.9 MB / 0.5451 GB Notification: Performance of Templates: time 0.1392/2.073, allocations: 75.21 MB / 0.9881 GB, free: 89.22 MB / 0.5451 GB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 9.510087038390338]