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.00251/0.00251, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002824/0.002824, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 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 1.586/1.586, allocations: 173.3 MB / 200.8 MB, free: 9.336 MB / 186.7 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 2.044e-06/2.044e-06, allocations: 0 / 267.4 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.003e-05/4.207e-05, allocations: 6.312 kB / 267.4 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.163/0.163, allocations: 38.46 MB / 305.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0193/0.1823, allocations: 10.36 MB / 316.2 MB, free: 6.535 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007511/0.1898, allocations: 368.7 kB / 316.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01762/0.2075, allocations: 9.078 MB / 325.6 MB, free: 36 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01319/0.2207, allocations: 3.578 MB / 329.2 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007866/0.2285, allocations: 2.36 MB / 331.6 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02159/0.2501, allocations: 13.39 MB / 344.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03762/0.2877, allocations: 17.2 MB / 362.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.025/0.3127, allocations: 10.41 MB / 372.6 MB, free: 1.348 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01614/0.3289, allocations: 7.388 MB / 379.9 MB, free: 9.945 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00629/0.3352, allocations: 1.949 MB / 381.9 MB, free: 7.996 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008895/0.3441, allocations: 2.335 MB / 384.2 MB, free: 5.66 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007094/0.3512, allocations: 4.106 MB / 388.3 MB, free: 1.543 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01335/0.3645, allocations: 5.135 MB / 393.5 MB, free: 12.4 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04103/0.4055, allocations: 26.38 MB / 419.8 MB, free: 1.945 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4055, allocations: 4 kB / 419.9 MB, free: 1.941 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4055, allocations: 4 kB / 419.9 MB, free: 1.938 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007074/0.4062, allocations: 0 / 419.9 MB, free: 1.938 MB / 362.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.05326/0.4595, allocations: 17.38 MB / 437.2 MB, free: 436 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.4596, allocations: 8.922 kB / 437.2 MB, free: 428 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2943/0.7538, allocations: 7.962 MB / 445.2 MB, free: 110.8 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01753/0.7714, allocations: 7.727 MB / 452.9 MB, free: 108.4 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009284/0.7723, allocations: 0.9067 MB / 453.8 MB, free: 107.9 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004179/0.7765, allocations: 1.204 MB / 455 MB, free: 107.5 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03757/0.8141, allocations: 19.13 MB / 474.2 MB, free: 89.7 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004195/0.8145, allocations: 24.39 kB / 474.2 MB, free: 89.68 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002567/0.817, allocations: 0.4919 MB / 474.7 MB, free: 89.19 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005111/0.8176, allocations: 0.6343 MB / 475.3 MB, free: 88.55 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03114/0.8487, allocations: 14.72 MB / 490 MB, free: 73.81 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/0.9584, allocations: 86.27 MB / 0.5628 GB, free: 124 kB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02103/0.9794, allocations: 9.509 MB / 0.5721 GB, free: 8.16 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006427/0.9858, allocations: 2.878 MB / 0.5749 GB, free: 5.273 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1417/1.127, allocations: 7.702 MB / 0.5824 GB, free: 113.9 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/1.128, allocations: 73.94 kB / 0.5825 GB, free: 113.9 MB / 410.8 MB Notification: Performance of pre-optimization done (n=349): time 5.951e-06/1.128, allocations: 3.219 kB / 0.5825 GB, free: 113.9 MB / 410.8 MB Notification: Performance of matching and sorting (n=389): time 0.03258/1.16, allocations: 14.87 MB / 0.597 GB, free: 112.4 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/1.16, allocations: 100.1 kB / 0.5971 GB, free: 112.3 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00836/1.169, allocations: 6.723 MB / 0.6037 GB, free: 111.7 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006707/1.169, allocations: 92.39 kB / 0.6038 GB, free: 111.7 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003347/1.173, allocations: 6.245 MB / 0.6099 GB, free: 109 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.174, allocations: 1.547 MB / 0.6114 GB, free: 108.1 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002503/1.177, allocations: 1.724 MB / 0.6131 GB, free: 107.4 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 5.046e-05/1.177, allocations: 484.6 kB / 0.6135 GB, free: 106.9 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003297/1.18, allocations: 2.302 MB / 0.6158 GB, free: 106.1 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005521/1.186, allocations: 7.042 MB / 0.6226 GB, free: 99.39 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009519/1.195, allocations: 10.24 MB / 0.6326 GB, free: 91.08 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001549/1.195, allocations: 28.94 kB / 0.6327 GB, free: 91.08 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01419/1.209, allocations: 9.029 MB / 0.6415 GB, free: 87.36 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.036e-05/1.21, allocations: 46.53 kB / 0.6415 GB, free: 87.36 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/1.21, allocations: 98.53 kB / 0.6416 GB, free: 87.36 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003024/1.213, allocations: 1.127 MB / 0.6427 GB, free: 86.51 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005455/1.218, allocations: 1.579 MB / 0.6443 GB, free: 84.93 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/1.229, allocations: 11.37 MB / 0.6554 GB, free: 73.19 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005734/1.234, allocations: 407.6 kB / 0.6558 GB, free: 72.79 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009305/1.235, allocations: 352 kB / 0.6561 GB, free: 72.45 MB / 410.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.005849/1.241, allocations: 3.855 MB / 0.6599 GB, free: 68.58 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001426/1.242, allocations: 0.6179 MB / 0.6605 GB, free: 67.96 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008793/1.251, allocations: 5.391 MB / 0.6657 GB, free: 62.53 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/1.251, allocations: 40 kB / 0.6658 GB, free: 62.49 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/1.251, allocations: 11.98 kB / 0.6658 GB, free: 62.48 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.272e-05/1.251, allocations: 19.92 kB / 0.6658 GB, free: 62.46 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0279/1.279, allocations: 16.8 MB / 0.6822 GB, free: 45.62 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/1.279, allocations: 4 kB / 0.6822 GB, free: 45.62 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003138/1.282, allocations: 0.7415 MB / 0.6829 GB, free: 44.88 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002788/1.285, allocations: 0.9624 MB / 0.6839 GB, free: 43.89 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000428/1.286, allocations: 91.97 kB / 0.684 GB, free: 43.8 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008697/1.294, allocations: 10.54 MB / 0.6943 GB, free: 32.91 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.294, allocations: 8.031 kB / 0.6943 GB, free: 32.91 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01133/1.306, allocations: 7.856 MB / 0.7019 GB, free: 24.91 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0029/1.309, allocations: 0.9064 MB / 0.7028 GB, free: 24 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009205/1.309, allocations: 72 kB / 0.7029 GB, free: 23.93 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00241/1.312, allocations: 219.8 kB / 0.7031 GB, free: 23.72 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005392/1.312, allocations: 282.5 kB / 0.7034 GB, free: 23.44 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002326/1.313, allocations: 114.2 kB / 0.7035 GB, free: 23.33 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.004486/1.317, allocations: 3.423 MB / 0.7068 GB, free: 19.91 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.81e-07/1.317, allocations: 0 / 0.7068 GB, free: 19.91 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.006718/1.324, allocations: 1.875 MB / 0.7086 GB, free: 18.04 MB / 410.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.0006635/1.324, allocations: 257.8 kB / 0.7089 GB, free: 17.78 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.01014/1.335, allocations: 7.063 MB / 0.7158 GB, free: 10.65 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/1.335, allocations: 0 / 0.7158 GB, free: 10.65 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004421/1.339, allocations: 3.16 MB / 0.7189 GB, free: 7.418 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005925/1.345, allocations: 1.185 MB / 0.72 GB, free: 6.277 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1634/1.508, allocations: 18.82 MB / 0.7384 GB, free: 110.2 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009381/1.518, allocations: 6.338 MB / 0.7446 GB, free: 109.6 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.005032/1.523, allocations: 1.811 MB / 0.7464 GB, free: 109.5 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/1.524, allocations: 392 kB / 0.7467 GB, free: 109.5 MB / 426.8 MB Notification: Performance of SimCode: time 1.313e-06/1.524, allocations: 0 / 0.7467 GB, free: 109.5 MB / 426.8 MB Notification: Performance of Templates: time 0.1048/1.629, allocations: 64.3 MB / 0.8095 GB, free: 72.54 MB / 426.8 MB " [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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] 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: 8.621539596002549]