Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001671/0.001671, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001827/0.001827, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 230.5 MB / 258.1 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 67.89 kB / 379 MB, free: 2.258 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2532, allocations: 53.41 MB / 432.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04223/0.2954, allocations: 34.39 MB / 466.8 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02439/0.3198, allocations: 10.35 MB / 477.2 MB, free: 9.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008654/0.3285, allocations: 373.9 kB / 477.6 MB, free: 9.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02162/0.3501, allocations: 8.027 MB / 485.6 MB, free: 1.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01343/0.3635, allocations: 3.48 MB / 489.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00784/0.3713, allocations: 2.331 MB / 491.4 MB, free: 11.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01941/0.3908, allocations: 13.04 MB / 0.4926 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0348/0.4256, allocations: 17.12 MB / 0.5093 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0125/0.4381, allocations: 6.978 MB / 0.5161 GB, free: 6.031 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01389/0.452, allocations: 7.532 MB / 0.5235 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00569/0.4577, allocations: 1.949 MB / 0.5254 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00799/0.4656, allocations: 2.343 MB / 0.5277 GB, free: 10.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006742/0.4724, allocations: 3.974 MB / 0.5316 GB, free: 6.195 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01469/0.4871, allocations: 5.899 MB / 0.5373 GB, free: 280 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.276/0.7631, allocations: 26.07 MB / 0.5628 GB, free: 39.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.7631, allocations: 0 / 0.5628 GB, free: 39.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.7631, allocations: 0 / 0.5628 GB, free: 39.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009507/0.764, allocations: 0 / 0.5628 GB, free: 39.21 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.04826/0.8123, allocations: 15.24 MB / 0.5777 GB, free: 31.17 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.8123, allocations: 18.25 kB / 0.5777 GB, free: 31.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03343/0.8458, allocations: 6.123 MB / 0.5837 GB, free: 28.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0181/0.8639, allocations: 8.093 MB / 0.5916 GB, free: 23.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008345/0.8647, allocations: 0.907 MB / 0.5925 GB, free: 22.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005021/0.8697, allocations: 1.195 MB / 0.5936 GB, free: 22.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04529/0.915, allocations: 18.92 MB / 0.6121 GB, free: 3.879 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005895/0.9156, allocations: 23.89 kB / 0.6121 GB, free: 3.855 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004138/0.9197, allocations: 0.4908 MB / 0.6126 GB, free: 3.375 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005841/0.9203, allocations: 0.6382 MB / 0.6132 GB, free: 2.734 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03981/0.9601, allocations: 16.74 MB / 0.6296 GB, free: 1.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1117/1.072, allocations: 50.67 MB / 0.6791 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01988/1.092, allocations: 10.27 MB / 0.6891 GB, free: 6.539 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006674/1.098, allocations: 3.405 MB / 0.6924 GB, free: 3.125 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02004/1.118, allocations: 7.666 MB / 0.6999 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.544e-05/1.119, allocations: 73.3 kB / 0.7 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.953e-06/1.119, allocations: 0 / 0.7 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04323/1.162, allocations: 17.25 MB / 0.7168 GB, free: 10.27 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.372e-05/1.162, allocations: 94.47 kB / 0.7169 GB, free: 10.16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01046/1.172, allocations: 4.783 MB / 0.7216 GB, free: 5.375 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008004/1.173, allocations: 93.7 kB / 0.7217 GB, free: 5.277 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004944/1.178, allocations: 5.651 MB / 0.7272 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002021/1.18, allocations: 1.418 MB / 0.7286 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003527/1.184, allocations: 1.334 MB / 0.7299 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001261/1.184, allocations: 301.1 kB / 0.7302 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005373/1.189, allocations: 2.914 MB / 0.733 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008594/1.198, allocations: 5.935 MB / 0.7388 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/1.212, allocations: 9.452 MB / 0.748 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001149/1.212, allocations: 32 kB / 0.7481 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2581/1.47, allocations: 9.835 MB / 0.7577 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.569e-05/1.47, allocations: 47.69 kB / 0.7577 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/1.47, allocations: 99.78 kB / 0.7578 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002538/1.473, allocations: 0.9351 MB / 0.7587 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00608/1.479, allocations: 1.587 MB / 0.7603 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/1.49, allocations: 9.667 MB / 0.7697 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005571/1.495, allocations: 411.8 kB / 0.7701 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001349/1.497, allocations: 358.9 kB / 0.7705 GB, free: 194.8 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.007674/1.504, allocations: 4.255 MB / 0.7746 GB, free: 193.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001251/1.505, allocations: 0.5096 MB / 0.7751 GB, free: 193.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009657/1.515, allocations: 6.429 MB / 0.7814 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/1.515, allocations: 39 kB / 0.7814 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/1.515, allocations: 11.75 kB / 0.7814 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.259e-05/1.515, allocations: 29.52 kB / 0.7815 GB, free: 190.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.025/1.54, allocations: 13.3 MB / 0.7944 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.481e-05/1.54, allocations: 3.875 kB / 0.7945 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006175/1.546, allocations: 0.755 MB / 0.7952 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003895/1.55, allocations: 0.7803 MB / 0.796 GB, free: 185.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008198/1.551, allocations: 95.48 kB / 0.796 GB, free: 185.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/1.567, allocations: 8.837 MB / 0.8047 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/1.567, allocations: 4 kB / 0.8047 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0239/1.591, allocations: 9.49 MB / 0.8139 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003367/1.594, allocations: 0.9855 MB / 0.8149 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001463/1.596, allocations: 75.33 kB / 0.815 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003143/1.599, allocations: 221.9 kB / 0.8152 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006846/1.599, allocations: 281.2 kB / 0.8155 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002733/1.6, allocations: 118.6 kB / 0.8156 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005052/1.605, allocations: 3.063 MB / 0.8186 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.01e-07/1.605, allocations: 0 / 0.8186 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007756/1.612, allocations: 1.873 MB / 0.8204 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.0008764/1.613, allocations: 266.8 kB / 0.8206 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01084/1.624, allocations: 7.22 MB / 0.8277 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.353e-06/1.624, allocations: 4.062 kB / 0.8277 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004955/1.629, allocations: 3.177 MB / 0.8308 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005801/1.635, allocations: 1.169 MB / 0.8319 GB, free: 152.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03033/1.665, allocations: 19.78 MB / 0.8513 GB, free: 132.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007382/1.673, allocations: 6.714 MB / 0.8578 GB, free: 125.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001819/1.674, allocations: 467.3 kB / 0.8583 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.323e-06/1.674, allocations: 3.938 kB / 0.8583 GB, free: 125.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.7975/2.472, allocations: 465.8 MB / 1.313 GB, free: 120.2 MB / 0.5919 GB " [Timeout remaining time 658] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.504557106643915]