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.001898/0.001898, allocations: 114.9 kB / 19.04 MB, free: 3.281 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.002189/0.002189, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 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 1.446/1.446, allocations: 225.6 MB / 250.8 MB, free: 13.4 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00203/0.00203, allocations: 43.92 kB / 368.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.232, allocations: 52.13 MB / 420.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04585/0.2779, allocations: 39.7 MB / 460.6 MB, free: 7.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0246/0.3025, allocations: 10.46 MB / 471.1 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006495/0.309, allocations: 303 kB / 471.4 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02049/0.3294, allocations: 8.623 MB / 480 MB, free: 3.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01224/0.3417, allocations: 3.48 MB / 483.5 MB, free: 332 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008184/0.3499, allocations: 2.364 MB / 485.8 MB, free: 13.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01892/0.3688, allocations: 12.89 MB / 498.7 MB, free: 1.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0323/0.4011, allocations: 16.19 MB / 0.5028 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01014/0.4112, allocations: 6.83 MB / 0.5095 GB, free: 9.836 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01172/0.423, allocations: 7.813 MB / 0.5171 GB, free: 1.996 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004079/0.427, allocations: 1.957 MB / 0.519 GB, free: 40 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005969/0.433, allocations: 2.343 MB / 0.5213 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00529/0.4383, allocations: 3.967 MB / 0.5252 GB, free: 9.719 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01168/0.45, allocations: 7.56 MB / 0.5326 GB, free: 2.129 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4229/0.8729, allocations: 25.92 MB / 0.5579 GB, free: 31.53 MB / 446.2 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.8729, allocations: 4.797 kB / 0.5579 GB, free: 31.52 MB / 446.2 MB Notification: Performance of FrontEnd: time 2.395e-06/0.8729, allocations: 1.156 kB / 0.5579 GB, free: 31.52 MB / 446.2 MB Notification: Performance of Transformations before backend: time 0.0007098/0.8736, allocations: 0.8125 kB / 0.5579 GB, free: 31.52 MB / 446.2 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.04332/0.9169, allocations: 15.29 MB / 0.5728 GB, free: 24.71 MB / 446.2 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.9169, allocations: 10.06 kB / 0.5729 GB, free: 24.71 MB / 446.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.032/0.9489, allocations: 6.203 MB / 0.5789 GB, free: 22.26 MB / 446.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0183/0.9672, allocations: 8.085 MB / 0.5868 GB, free: 17.83 MB / 446.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008411/0.9681, allocations: 0.9064 MB / 0.5877 GB, free: 17.42 MB / 446.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006711/0.9748, allocations: 1.189 MB / 0.5889 GB, free: 17.02 MB / 446.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05092/1.026, allocations: 18.66 MB / 0.6071 GB, free: 15.66 MB / 462.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005681/1.026, allocations: 26.09 kB / 0.6071 GB, free: 15.64 MB / 462.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005903/1.032, allocations: 499.6 kB / 0.6076 GB, free: 15.16 MB / 462.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007195/1.033, allocations: 0.6498 MB / 0.6082 GB, free: 14.51 MB / 462.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04097/1.074, allocations: 16.77 MB / 0.6246 GB, free: 13.74 MB / 478.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1365/1.21, allocations: 58.28 MB / 0.6815 GB, free: 3.121 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03487/1.245, allocations: 32.46 MB / 0.7132 GB, free: 14.86 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008457/1.254, allocations: 3.39 MB / 0.7165 GB, free: 11.46 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02346/1.277, allocations: 8.651 MB / 0.725 GB, free: 2.863 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.545e-05/1.277, allocations: 69.31 kB / 0.725 GB, free: 2.785 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 6.632e-06/1.277, allocations: 0 / 0.725 GB, free: 2.785 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.05095/1.328, allocations: 17.68 MB / 0.7423 GB, free: 1.027 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/1.328, allocations: 94.47 kB / 0.7424 GB, free: 0.9219 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.298/1.626, allocations: 5.019 MB / 0.7473 GB, free: 216.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007915/1.627, allocations: 88.48 kB / 0.7474 GB, free: 216.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005124/1.632, allocations: 5.636 MB / 0.7529 GB, free: 214.2 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002398/1.635, allocations: 1.418 MB / 0.7542 GB, free: 213.3 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003178/1.638, allocations: 1.323 MB / 0.7555 GB, free: 212.7 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.785e-05/1.638, allocations: 308.4 kB / 0.7558 GB, free: 212.4 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/1.642, allocations: 2.902 MB / 0.7587 GB, free: 211.3 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005222/1.647, allocations: 5.88 MB / 0.7644 GB, free: 206.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009648/1.657, allocations: 9.436 MB / 0.7736 GB, free: 199.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/1.657, allocations: 27.16 kB / 0.7736 GB, free: 199.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01912/1.676, allocations: 9.847 MB / 0.7833 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002027/1.676, allocations: 48 kB / 0.7833 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002587/1.676, allocations: 103.8 kB / 0.7834 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002851/1.679, allocations: 0.9394 MB / 0.7843 GB, free: 194.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006889/1.686, allocations: 1.587 MB / 0.7859 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/1.697, allocations: 10.19 MB / 0.7958 GB, free: 183.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006388/1.704, allocations: 411.5 kB / 0.7962 GB, free: 183.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001423/1.705, allocations: 355.3 kB / 0.7966 GB, free: 183.1 MB / 0.5763 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.008615/1.714, allocations: 4.244 MB / 0.8007 GB, free: 179.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001721/1.715, allocations: 0.5432 MB / 0.8012 GB, free: 178.9 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/1.728, allocations: 6.449 MB / 0.8075 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/1.728, allocations: 47.61 kB / 0.8076 GB, free: 173.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/1.728, allocations: 8 kB / 0.8076 GB, free: 173.4 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-05/1.728, allocations: 19.31 kB / 0.8076 GB, free: 173.4 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03443/1.763, allocations: 15.68 MB / 0.8229 GB, free: 159.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/1.763, allocations: 4 kB / 0.8229 GB, free: 159.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003358/1.766, allocations: 0.7454 MB / 0.8236 GB, free: 158.8 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002214/1.768, allocations: 0.7879 MB / 0.8244 GB, free: 158 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000722/1.769, allocations: 79.98 kB / 0.8245 GB, free: 157.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008896/1.778, allocations: 9.366 MB / 0.8336 GB, free: 148.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/1.778, allocations: 4.5 kB / 0.8336 GB, free: 148.1 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/1.793, allocations: 9.491 MB / 0.8429 GB, free: 138.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00293/1.796, allocations: 1.083 MB / 0.844 GB, free: 137.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001782/1.798, allocations: 71.98 kB / 0.844 GB, free: 137.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00362/1.801, allocations: 223.8 kB / 0.8442 GB, free: 137.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000846/1.802, allocations: 266.7 kB / 0.8445 GB, free: 136.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004485/1.803, allocations: 112 kB / 0.8446 GB, free: 136.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006294/1.809, allocations: 3.35 MB / 0.8479 GB, free: 133.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2e-07/1.809, allocations: 0 / 0.8479 GB, free: 133.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007964/1.817, allocations: 1.875 MB / 0.8497 GB, free: 131.5 MB / 0.5763 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.0009109/1.818, allocations: 266.4 kB / 0.85 GB, free: 131.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01208/1.83, allocations: 7.358 MB / 0.8571 GB, free: 123.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.034e-06/1.83, allocations: 4.938 kB / 0.8572 GB, free: 123.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005048/1.835, allocations: 3.316 MB / 0.8604 GB, free: 120.4 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007403/1.842, allocations: 1.289 MB / 0.8617 GB, free: 119.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03099/1.873, allocations: 20.15 MB / 0.8813 GB, free: 98.95 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005861/1.879, allocations: 7.324 MB / 0.8885 GB, free: 91.58 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005164/1.884, allocations: 2.159 MB / 0.8906 GB, free: 89.42 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/1.886, allocations: 403.4 kB / 0.891 GB, free: 89.03 MB / 0.5763 GB Notification: Performance of SimCode: time 1.493e-06/1.886, allocations: 0 / 0.891 GB, free: 89.03 MB / 0.5763 GB Notification: Performance of Templates: time 0.3455/2.231, allocations: 74.92 MB / 0.9641 GB, free: 197.8 MB / 0.5763 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: 9.053820726461709]