Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001331/0.001331, allocations: 120.2 kB / 19.18 MB, free: 3.852 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.001435/0.001435, allocations: 205 kB / 22.12 MB, free: 0.9062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.484/1.484, allocations: 230.4 MB / 255.4 MB, free: 15.03 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 71.84 kB / 374.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09728, allocations: 53.31 MB / 428.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.225/0.3223, allocations: 40.22 MB / 468.3 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02636/0.3486, allocations: 10.69 MB / 479 MB, free: 8.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01175/0.3604, allocations: 311 kB / 479.3 MB, free: 8.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02173/0.3821, allocations: 8.631 MB / 488 MB, free: 2.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01358/0.3957, allocations: 3.478 MB / 491.4 MB, free: 15.44 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008246/0.4039, allocations: 2.391 MB / 493.8 MB, free: 13.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0192/0.4231, allocations: 12.95 MB / 0.4949 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03636/0.4595, allocations: 19.63 MB / 0.5141 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01187/0.4714, allocations: 6.841 MB / 0.5208 GB, free: 7.227 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01379/0.4852, allocations: 7.907 MB / 0.5285 GB, free: 15.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005609/0.4908, allocations: 1.957 MB / 0.5304 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007259/0.498, allocations: 2.367 MB / 0.5327 GB, free: 10.97 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006453/0.5045, allocations: 3.967 MB / 0.5366 GB, free: 6.992 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01421/0.5187, allocations: 7.56 MB / 0.544 GB, free: 15.4 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03565/0.5543, allocations: 25.97 MB / 0.5693 GB, free: 5.352 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5543, allocations: 0 / 0.5693 GB, free: 5.352 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5543, allocations: 0 / 0.5693 GB, free: 5.352 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007251/0.5551, allocations: 0 / 0.5693 GB, free: 5.352 MB / 478.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.04798/0.6031, allocations: 15.33 MB / 0.5843 GB, free: 5.883 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.6031, allocations: 8.031 kB / 0.5843 GB, free: 5.875 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03483/0.6379, allocations: 6.13 MB / 0.5903 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02076/0.6587, allocations: 8.108 MB / 0.5982 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001065/0.6597, allocations: 0.9032 MB / 0.5991 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004546/0.6643, allocations: 1.195 MB / 0.6003 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05053/0.7148, allocations: 18.69 MB / 0.6185 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007004/0.7155, allocations: 19.91 kB / 0.6185 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00483/0.7204, allocations: 500 kB / 0.619 GB, free: 2.148 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008942/0.7213, allocations: 0.642 MB / 0.6196 GB, free: 1.504 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2569/0.9781, allocations: 16.8 MB / 0.636 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1005/1.079, allocations: 58.99 MB / 0.6936 GB, free: 103.8 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01941/1.098, allocations: 32.81 MB / 0.7257 GB, free: 67.16 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005251/1.103, allocations: 3.41 MB / 0.729 GB, free: 63.74 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/1.12, allocations: 8.892 MB / 0.7377 GB, free: 54.83 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.522e-05/1.12, allocations: 73.25 kB / 0.7378 GB, free: 54.75 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=349): time 5.059e-06/1.12, allocations: 0 / 0.7378 GB, free: 54.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=389): time 0.03234/1.152, allocations: 17.73 MB / 0.7551 GB, free: 36.89 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/1.153, allocations: 90.47 kB / 0.7552 GB, free: 36.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007143/1.16, allocations: 5.046 MB / 0.7601 GB, free: 31.75 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005474/1.16, allocations: 85.7 kB / 0.7602 GB, free: 31.66 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002233/1.162, allocations: 5.641 MB / 0.7657 GB, free: 26 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001011/1.163, allocations: 1.419 MB / 0.7671 GB, free: 24.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001559/1.165, allocations: 1.334 MB / 0.7684 GB, free: 23.26 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.355e-05/1.165, allocations: 313.1 kB / 0.7687 GB, free: 22.95 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003345/1.168, allocations: 2.906 MB / 0.7715 GB, free: 20.04 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004242/1.173, allocations: 5.879 MB / 0.7773 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/1.183, allocations: 9.452 MB / 0.7865 GB, free: 1.863 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.108e-05/1.183, allocations: 28 kB / 0.7865 GB, free: 1.836 MB / 0.5137 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01854/1.201, allocations: 9.874 MB / 0.7962 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.153e-05/1.201, allocations: 48 kB / 0.7962 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/1.202, allocations: 103.9 kB / 0.7963 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002496/1.204, allocations: 0.9408 MB / 0.7972 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005888/1.21, allocations: 1.587 MB / 0.7988 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01436/1.224, allocations: 10.17 MB / 0.8087 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006359/1.231, allocations: 411.5 kB / 0.8091 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.232, allocations: 356 kB / 0.8094 GB, free: 9.859 MB / 0.545 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.009796/1.242, allocations: 4.255 MB / 0.8136 GB, free: 5.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001895/1.244, allocations: 0.5395 MB / 0.8141 GB, free: 5.047 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01403/1.258, allocations: 6.462 MB / 0.8204 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.155e-05/1.258, allocations: 40 kB / 0.8205 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/1.258, allocations: 15.98 kB / 0.8205 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-05/1.258, allocations: 15.94 kB / 0.8205 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2408/1.499, allocations: 15.71 MB / 0.8358 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/1.499, allocations: 3.406 kB / 0.8358 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003519/1.502, allocations: 0.7459 MB / 0.8366 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002148/1.504, allocations: 0.786 MB / 0.8373 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004703/1.505, allocations: 88.22 kB / 0.8374 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/1.515, allocations: 9.358 MB / 0.8466 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/1.515, allocations: 8.156 kB / 0.8466 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/1.53, allocations: 9.522 MB / 0.8559 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002963/1.533, allocations: 1.083 MB / 0.8569 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001093/1.534, allocations: 78.2 kB / 0.857 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002724/1.536, allocations: 222.3 kB / 0.8572 GB, free: 170 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006423/1.537, allocations: 266.2 kB / 0.8575 GB, free: 170 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002709/1.537, allocations: 122.3 kB / 0.8576 GB, free: 170 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005838/1.543, allocations: 3.359 MB / 0.8609 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/1.543, allocations: 0 / 0.8609 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007639/1.551, allocations: 1.88 MB / 0.8627 GB, free: 168.6 MB / 0.5606 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.0008951/1.552, allocations: 263.8 kB / 0.863 GB, free: 168.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0106/1.562, allocations: 7.375 MB / 0.8702 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.562, allocations: 1.312 kB / 0.8702 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004895/1.567, allocations: 3.336 MB / 0.8734 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005451/1.573, allocations: 1.295 MB / 0.8747 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/1.602, allocations: 19.66 MB / 0.8939 GB, free: 152 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006178/1.608, allocations: 7.108 MB / 0.9008 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001747/1.609, allocations: 486.2 kB / 0.9013 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.302e-06/1.609, allocations: 0 / 0.9013 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.786/2.395, allocations: 464.4 MB / 1.355 GB, free: 126.5 MB / 0.5762 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.819987472961657]