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.001401/0.001401, allocations: 96.25 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001467/0.001467, allocations: 156.9 kB / 24.26 MB, free: 176 kB / 18.57 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.449/1.449, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 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 1.302e-06/1.302e-06, allocations: 0 / 272.3 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.164e-05/2.294e-05, allocations: 6.312 kB / 272.3 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1748/0.1748, allocations: 34.42 MB / 306.7 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02756/0.2023, allocations: 10.41 MB / 317.1 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01083/0.2132, allocations: 374 kB / 317.5 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02024/0.2334, allocations: 8.426 MB / 325.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01451/0.2479, allocations: 3.569 MB / 329.4 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007897/0.2558, allocations: 2.352 MB / 331.8 MB, free: 6.449 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02174/0.2776, allocations: 13.51 MB / 345.3 MB, free: 8.898 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03566/0.3132, allocations: 17.16 MB / 362.5 MB, free: 7.574 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02228/0.3355, allocations: 10.32 MB / 372.8 MB, free: 13.24 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01484/0.3503, allocations: 6.693 MB / 379.5 MB, free: 6.531 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005655/0.356, allocations: 1.953 MB / 381.4 MB, free: 4.578 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009337/0.3653, allocations: 2.366 MB / 383.8 MB, free: 2.211 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007999/0.3733, allocations: 4.036 MB / 387.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01228/0.3856, allocations: 5.076 MB / 392.9 MB, free: 9.078 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04306/0.4287, allocations: 26.27 MB / 419.2 MB, free: 14.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.4287, allocations: 4 kB / 419.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4287, allocations: 0 / 419.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008862/0.4296, allocations: 0 / 419.2 MB, free: 14.73 MB / 378.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.2915/0.721, allocations: 15.11 MB / 434.3 MB, free: 107.5 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.7211, allocations: 14.09 kB / 434.3 MB, free: 107.5 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03689/0.758, allocations: 7.875 MB / 442.2 MB, free: 106.5 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01665/0.7746, allocations: 8.455 MB / 450.6 MB, free: 102.7 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008344/0.7755, allocations: 0.9053 MB / 451.5 MB, free: 102.3 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00458/0.78, allocations: 1.199 MB / 452.7 MB, free: 101.3 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04663/0.8267, allocations: 18.91 MB / 471.7 MB, free: 82.32 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000693/0.8274, allocations: 31.7 kB / 471.7 MB, free: 82.29 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004057/0.8314, allocations: 0.4913 MB / 472.2 MB, free: 81.81 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000646/0.8321, allocations: 0.6421 MB / 472.8 MB, free: 81.16 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03414/0.8662, allocations: 16.74 MB / 489.6 MB, free: 64.4 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09278/0.959, allocations: 52.05 MB / 0.5289 GB, free: 11.94 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01595/0.9749, allocations: 10.32 MB / 0.539 GB, free: 3.215 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005109/0.98, allocations: 3.417 MB / 0.5423 GB, free: 15.79 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02016/1, allocations: 7.721 MB / 0.5499 GB, free: 8.25 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.861e-05/1, allocations: 69.31 kB / 0.5499 GB, free: 8.172 MB / 394.8 MB Notification: Performance of pre-optimization done (n=349): time 5.891e-06/1, allocations: 0 / 0.5499 GB, free: 8.172 MB / 394.8 MB Notification: Performance of matching and sorting (n=389): time 0.0437/1.044, allocations: 17.38 MB / 0.5669 GB, free: 6.758 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/1.044, allocations: 90.47 kB / 0.567 GB, free: 6.656 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008845/1.053, allocations: 4.791 MB / 0.5717 GB, free: 1.859 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007491/1.054, allocations: 89.7 kB / 0.5718 GB, free: 1.766 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005825/1.059, allocations: 5.631 MB / 0.5773 GB, free: 12.12 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002356/1.062, allocations: 1.397 MB / 0.5786 GB, free: 10.74 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002838/1.065, allocations: 1.315 MB / 0.5799 GB, free: 9.414 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0001589/1.065, allocations: 305.1 kB / 0.5802 GB, free: 9.113 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005428/1.07, allocations: 2.91 MB / 0.583 GB, free: 6.199 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1885/1.259, allocations: 5.934 MB / 0.5888 GB, free: 134.5 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/1.273, allocations: 9.453 MB / 0.5981 GB, free: 129.2 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001623/1.273, allocations: 28.62 kB / 0.5981 GB, free: 129.2 MB / 426.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01999/1.293, allocations: 10.17 MB / 0.608 GB, free: 125.3 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/1.293, allocations: 47.5 kB / 0.6081 GB, free: 125.3 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/1.293, allocations: 102.2 kB / 0.6082 GB, free: 125.3 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003169/1.296, allocations: 1.109 MB / 0.6093 GB, free: 125 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006083/1.303, allocations: 1.586 MB / 0.6108 GB, free: 124.9 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/1.314, allocations: 9.727 MB / 0.6203 GB, free: 118.5 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005987/1.32, allocations: 406.4 kB / 0.6207 GB, free: 118.4 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/1.321, allocations: 359.2 kB / 0.621 GB, free: 118.3 MB / 426.8 MB 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.007434/1.328, allocations: 4.25 MB / 0.6252 GB, free: 116.3 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001733/1.33, allocations: 0.6231 MB / 0.6258 GB, free: 116.2 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/1.341, allocations: 6.443 MB / 0.6321 GB, free: 112.7 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.703e-05/1.341, allocations: 43.7 kB / 0.6321 GB, free: 112.7 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/1.341, allocations: 8 kB / 0.6321 GB, free: 112.7 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.816e-05/1.341, allocations: 18.38 kB / 0.6321 GB, free: 112.7 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02737/1.368, allocations: 13.3 MB / 0.6451 GB, free: 101.3 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/1.368, allocations: 4.375 kB / 0.6451 GB, free: 101.2 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003311/1.372, allocations: 0.7489 MB / 0.6459 GB, free: 100.5 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002797/1.374, allocations: 0.9482 MB / 0.6468 GB, free: 99.54 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005533/1.375, allocations: 83.97 kB / 0.6469 GB, free: 99.46 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008604/1.383, allocations: 8.899 MB / 0.6556 GB, free: 90.38 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.383, allocations: 4.031 kB / 0.6556 GB, free: 90.37 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01314/1.397, allocations: 9.613 MB / 0.665 GB, free: 80.93 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002652/1.399, allocations: 0.9873 MB / 0.6659 GB, free: 80.19 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007945/1.4, allocations: 70.11 kB / 0.666 GB, free: 80.12 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/1.402, allocations: 227.7 kB / 0.6662 GB, free: 79.9 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005382/1.403, allocations: 282.5 kB / 0.6665 GB, free: 79.62 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002481/1.403, allocations: 116 kB / 0.6666 GB, free: 79.51 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.004003/1.407, allocations: 3.064 MB / 0.6696 GB, free: 76.45 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.91e-07/1.407, allocations: 0 / 0.6696 GB, free: 76.45 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.006353/1.414, allocations: 1.875 MB / 0.6714 GB, free: 74.58 MB / 426.8 MB 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.0006444/1.414, allocations: 269.1 kB / 0.6717 GB, free: 74.32 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.009676/1.424, allocations: 7.219 MB / 0.6787 GB, free: 67.06 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/1.424, allocations: 4.062 kB / 0.6787 GB, free: 67.05 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004152/1.428, allocations: 3.18 MB / 0.6818 GB, free: 63.83 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005095/1.433, allocations: 1.208 MB / 0.683 GB, free: 62.69 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02803/1.461, allocations: 20.26 MB / 0.7028 GB, free: 42.3 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00668/1.468, allocations: 6.93 MB / 0.7096 GB, free: 35.33 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.005331/1.473, allocations: 2.111 MB / 0.7116 GB, free: 33.21 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/1.474, allocations: 400.4 kB / 0.712 GB, free: 32.82 MB / 426.8 MB Notification: Performance of SimCode: time 1.784e-06/1.474, allocations: 0 / 0.712 GB, free: 32.82 MB / 426.8 MB Notification: Performance of Templates: time 0.2416/1.716, allocations: 65.22 MB / 0.7757 GB, free: 111.2 MB / 426.8 MB " [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/jenkins/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/jenkins/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: 8.679625969030894]