Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.0008578/0.0008578, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.003184/0.003184, allocations: 145.3 kB / 24.68 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8251/0.8251, allocations: 173.4 MB / 201.2 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 319.7 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.679e-05, allocations: 13.45 kB / 319.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0259/0.02593, allocations: 33.87 MB / 353.6 MB, free: 3.766 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0219/0.04783, allocations: 10.14 MB / 363.8 MB, free: 9.59 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007149/0.05498, allocations: 366 kB / 364.1 MB, free: 9.23 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01002/0.065, allocations: 8.433 MB / 372.5 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00915/0.07415, allocations: 3.563 MB / 376.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003924/0.07807, allocations: 2.326 MB / 378.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.09025, allocations: 13.4 MB / 391.8 MB, free: 13.42 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01928/0.1095, allocations: 17.17 MB / 409 MB, free: 12.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01388/0.1234, allocations: 10.3 MB / 419.3 MB, free: 1.777 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006761/0.1302, allocations: 6.673 MB / 426 MB, free: 11.09 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001836/0.132, allocations: 1.953 MB / 427.9 MB, free: 9.133 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002628/0.1346, allocations: 2.335 MB / 430.3 MB, free: 6.797 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002079/0.1367, allocations: 4.032 MB / 434.3 MB, free: 2.754 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004639/0.1414, allocations: 5.072 MB / 439.4 MB, free: 13.67 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2068/0.3482, allocations: 26.22 MB / 465.6 MB, free: 51.13 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3482, allocations: 0 / 465.6 MB, free: 51.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3482, allocations: 3.5 kB / 465.6 MB, free: 51.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005836/0.3488, allocations: 7.125 kB / 465.6 MB, free: 51.13 MB / 410.7 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.02329/0.3721, allocations: 15.07 MB / 480.7 MB, free: 45.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3721, allocations: 11.48 kB / 480.7 MB, free: 45.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01508/0.3872, allocations: 6.215 MB / 486.9 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01129/0.3985, allocations: 8.076 MB / 495 MB, free: 40.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004119/0.3989, allocations: 0.9005 MB / 495.9 MB, free: 39.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002603/0.4015, allocations: 1.194 MB / 497.1 MB, free: 39.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0234/0.4249, allocations: 18.88 MB / 0.5039 GB, free: 23.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/0.4251, allocations: 27.89 kB / 0.5039 GB, free: 23.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001121/0.4262, allocations: 0.4924 MB / 0.5044 GB, free: 22.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003459/0.4266, allocations: 0.6421 MB / 0.505 GB, free: 22.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01842/0.445, allocations: 16.7 MB / 0.5213 GB, free: 5.402 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05485/0.4998, allocations: 50.59 MB / 0.5707 GB, free: 2.656 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.5099, allocations: 10.14 MB / 0.5806 GB, free: 10.1 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003457/0.5134, allocations: 3.377 MB / 0.5839 GB, free: 6.711 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009564/0.5229, allocations: 7.592 MB / 0.5913 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/0.523, allocations: 69.31 kB / 0.5914 GB, free: 15.15 MB / 490.7 MB Notification: Performance of pre-optimization done (n=349): time 4.939e-06/0.523, allocations: 2.516 kB / 0.5914 GB, free: 15.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=389): time 0.02224/0.5452, allocations: 17.19 MB / 0.6082 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.5453, allocations: 90.47 kB / 0.6083 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005016/0.5503, allocations: 4.777 MB / 0.6129 GB, free: 9.109 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001976/0.5505, allocations: 89.7 kB / 0.613 GB, free: 9.016 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002431/0.5529, allocations: 5.621 MB / 0.6185 GB, free: 3.379 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007652/0.5537, allocations: 1.401 MB / 0.6199 GB, free: 1.996 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/0.5549, allocations: 1.315 MB / 0.6212 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.584e-05/0.555, allocations: 301.1 kB / 0.6214 GB, free: 384 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1914/0.7464, allocations: 2.904 MB / 0.6243 GB, free: 180 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003791/0.7502, allocations: 5.923 MB / 0.6301 GB, free: 176.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006347/0.7565, allocations: 9.44 MB / 0.6393 GB, free: 169.8 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.78e-05/0.7566, allocations: 28.72 kB / 0.6393 GB, free: 169.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.009332/0.7659, allocations: 9.817 MB / 0.6489 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.766, allocations: 46.5 kB / 0.6489 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.984e-05/0.766, allocations: 101.3 kB / 0.649 GB, free: 166.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.7674, allocations: 0.9444 MB / 0.65 GB, free: 165.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002634/0.77, allocations: 1.579 MB / 0.6515 GB, free: 165.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006101/0.7762, allocations: 9.675 MB / 0.6609 GB, free: 156.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002873/0.779, allocations: 410.8 kB / 0.6613 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003084/0.7793, allocations: 358.3 kB / 0.6617 GB, free: 156.3 MB / 0.4948 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.00518/0.7845, allocations: 4.25 MB / 0.6658 GB, free: 152.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006121/0.7851, allocations: 0.5049 MB / 0.6663 GB, free: 152.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005845/0.791, allocations: 6.419 MB / 0.6726 GB, free: 147.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.791, allocations: 47.62 kB / 0.6726 GB, free: 147 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.791, allocations: 12 kB / 0.6727 GB, free: 147 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.791, allocations: 22.22 kB / 0.6727 GB, free: 147 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.8042, allocations: 13.26 MB / 0.6856 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.8042, allocations: 0 / 0.6856 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/0.8058, allocations: 0.7498 MB / 0.6863 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.8069, allocations: 0.7896 MB / 0.6871 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001888/0.8071, allocations: 83.8 kB / 0.6872 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00554/0.8126, allocations: 8.829 MB / 0.6958 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.8126, allocations: 8.188 kB / 0.6958 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008025/0.8207, allocations: 9.462 MB / 0.7051 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/0.8223, allocations: 0.9804 MB / 0.706 GB, free: 115.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003657/0.8227, allocations: 72 kB / 0.7061 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.8238, allocations: 215.8 kB / 0.7063 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003434/0.8242, allocations: 282.5 kB / 0.7066 GB, free: 115 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/0.8243, allocations: 112 kB / 0.7067 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003059/0.8274, allocations: 3.056 MB / 0.7097 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8274, allocations: 0 / 0.7097 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00473/0.8321, allocations: 1.871 MB / 0.7115 GB, free: 110 MB / 0.4948 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.0004471/0.8326, allocations: 255.3 kB / 0.7117 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006888/0.8394, allocations: 7.221 MB / 0.7188 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.8394, allocations: 0 / 0.7188 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00264/0.8421, allocations: 3.166 MB / 0.7219 GB, free: 99.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/0.8451, allocations: 1.154 MB / 0.723 GB, free: 98.16 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02392/0.869, allocations: 19.69 MB / 0.7422 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004529/0.8736, allocations: 6.702 MB / 0.7488 GB, free: 71.65 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/0.8753, allocations: 448.4 kB / 0.7492 GB, free: 71.21 MB / 0.4948 GB Notification: Performance of SimCode: time 1.333e-06/0.8753, allocations: 2.734 kB / 0.7492 GB, free: 71.21 MB / 0.4948 GB Notification: Performance of Templates: time 0.854/1.729, allocations: 463.7 MB / 1.202 GB, free: 164.9 MB / 0.4948 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 16.679184923879802]