Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005265/0.005265, allocations: 163.9 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.84/0.84, allocations: 177.2 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 325.9 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.37e-05, allocations: 4.672 kB / 325.9 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02601/0.02603, allocations: 34.44 MB / 360.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02251/0.04855, allocations: 10.36 MB / 370.7 MB, free: 2.395 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008282/0.05683, allocations: 373.9 kB / 371.1 MB, free: 2.027 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01065/0.06748, allocations: 8.449 MB / 379.5 MB, free: 9.555 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009278/0.07676, allocations: 3.564 MB / 383.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004138/0.0809, allocations: 2.352 MB / 385.4 MB, free: 3.621 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01146/0.09236, allocations: 13.5 MB / 398.9 MB, free: 6.074 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01723/0.1096, allocations: 17.18 MB / 416.1 MB, free: 4.738 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01118/0.1208, allocations: 10.32 MB / 426.4 MB, free: 10.4 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007573/0.1283, allocations: 6.693 MB / 433.1 MB, free: 3.691 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002578/0.1309, allocations: 1.949 MB / 435.1 MB, free: 1.742 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00354/0.1345, allocations: 2.362 MB / 437.4 MB, free: 15.38 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.137, allocations: 4.044 MB / 441.5 MB, free: 11.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00495/0.1419, allocations: 5.068 MB / 446.5 MB, free: 6.246 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3311/0.473, allocations: 26.26 MB / 472.8 MB, free: 48.45 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.473, allocations: 0 / 472.8 MB, free: 48.45 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.663e-06/0.473, allocations: 0 / 472.8 MB, free: 48.45 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0005134/0.4736, allocations: 6.547 kB / 472.8 MB, free: 48.45 MB / 410.8 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.02676/0.5003, allocations: 15.11 MB / 487.9 MB, free: 41.73 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.5004, allocations: 11.75 kB / 487.9 MB, free: 41.73 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01499/0.5153, allocations: 6.135 MB / 494.1 MB, free: 39.29 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/0.5271, allocations: 8.098 MB / 0.4904 GB, free: 35.52 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003673/0.5275, allocations: 0.904 MB / 0.4913 GB, free: 35.11 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002897/0.5304, allocations: 1.198 MB / 0.4924 GB, free: 34.71 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02466/0.555, allocations: 18.91 MB / 0.5109 GB, free: 17.32 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001967/0.5552, allocations: 27.2 kB / 0.5109 GB, free: 17.3 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008703/0.5561, allocations: 499.9 kB / 0.5114 GB, free: 16.82 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003052/0.5564, allocations: 0.6421 MB / 0.512 GB, free: 16.18 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/0.5791, allocations: 16.74 MB / 0.5284 GB, free: 15.43 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06757/0.6467, allocations: 50.68 MB / 0.5779 GB, free: 12.6 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01089/0.6575, allocations: 10.28 MB / 0.5879 GB, free: 3.949 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003388/0.6609, allocations: 3.401 MB / 0.5913 GB, free: 0.5352 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01018/0.6711, allocations: 7.682 MB / 0.5988 GB, free: 8.957 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.6711, allocations: 69.31 kB / 0.5988 GB, free: 8.879 MB / 490.8 MB Notification: Performance of pre-optimization done (n=349): time 4.138e-06/0.6712, allocations: 4 kB / 0.5988 GB, free: 8.875 MB / 490.8 MB Notification: Performance of matching and sorting (n=389): time 0.02323/0.6944, allocations: 17.24 MB / 0.6157 GB, free: 7.652 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002148/0.6946, allocations: 90.47 kB / 0.6158 GB, free: 7.551 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005446/0.7, allocations: 4.791 MB / 0.6204 GB, free: 2.754 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0002244/0.7003, allocations: 89.7 kB / 0.6205 GB, free: 2.66 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.1857/0.886, allocations: 5.626 MB / 0.626 GB, free: 174 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001556/0.8875, allocations: 1.401 MB / 0.6274 GB, free: 173.1 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00188/0.8894, allocations: 1.319 MB / 0.6287 GB, free: 173 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 2.938e-05/0.8894, allocations: 301.1 kB / 0.629 GB, free: 172.7 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003079/0.8925, allocations: 2.911 MB / 0.6318 GB, free: 172.7 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003383/0.8959, allocations: 5.933 MB / 0.6376 GB, free: 168.7 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006454/0.9023, allocations: 9.456 MB / 0.6468 GB, free: 161.8 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.639e-05/0.9024, allocations: 31 kB / 0.6469 GB, free: 161.8 MB / 0.4949 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.009443/0.9118, allocations: 9.834 MB / 0.6565 GB, free: 157.8 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 4.816e-05/0.9119, allocations: 48.78 kB / 0.6565 GB, free: 157.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.008e-05/0.912, allocations: 101 kB / 0.6566 GB, free: 157.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.9134, allocations: 0.9408 MB / 0.6575 GB, free: 157.3 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/0.9159, allocations: 1.583 MB / 0.6591 GB, free: 156 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006218/0.9221, allocations: 9.68 MB / 0.6685 GB, free: 146.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/0.9256, allocations: 408.9 kB / 0.6689 GB, free: 146.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003839/0.926, allocations: 360.2 kB / 0.6693 GB, free: 146.2 MB / 0.4949 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.006378/0.9323, allocations: 4.248 MB / 0.6734 GB, free: 142.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008196/0.9332, allocations: 0.5005 MB / 0.6739 GB, free: 142 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006385/0.9395, allocations: 6.437 MB / 0.6802 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.9396, allocations: 47.81 kB / 0.6802 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.9396, allocations: 8 kB / 0.6802 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/0.9396, allocations: 22.5 kB / 0.6803 GB, free: 136.6 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/0.9537, allocations: 13.3 MB / 0.6932 GB, free: 125.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.9538, allocations: 4 kB / 0.6932 GB, free: 125.1 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/0.9553, allocations: 0.7493 MB / 0.694 GB, free: 124.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.9564, allocations: 0.7867 MB / 0.6947 GB, free: 123.6 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.9566, allocations: 90.22 kB / 0.6948 GB, free: 123.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005343/0.9619, allocations: 8.839 MB / 0.7035 GB, free: 114.4 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.9619, allocations: 4 kB / 0.7035 GB, free: 114.4 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007968/0.9699, allocations: 9.485 MB / 0.7127 GB, free: 104.8 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.9714, allocations: 0.9867 MB / 0.7137 GB, free: 103.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003342/0.9718, allocations: 72 kB / 0.7138 GB, free: 103.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.9729, allocations: 215.8 kB / 0.714 GB, free: 103.5 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003119/0.9732, allocations: 282.5 kB / 0.7142 GB, free: 103.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.9734, allocations: 120 kB / 0.7143 GB, free: 103.1 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002917/0.9763, allocations: 3.064 MB / 0.7173 GB, free: 100 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6e-08/0.9763, allocations: 0 / 0.7173 GB, free: 100 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.004726/0.981, allocations: 1.871 MB / 0.7192 GB, free: 98.16 MB / 0.4949 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.0004236/0.9814, allocations: 272.5 kB / 0.7194 GB, free: 97.9 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.006524/0.9879, allocations: 7.203 MB / 0.7265 GB, free: 90.66 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.9879, allocations: 1.875 kB / 0.7265 GB, free: 90.66 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002509/0.9905, allocations: 3.179 MB / 0.7296 GB, free: 87.43 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002728/0.9932, allocations: 1.175 MB / 0.7307 GB, free: 86.29 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/1.013, allocations: 19.65 MB / 0.7499 GB, free: 66.55 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003872/1.017, allocations: 6.714 MB / 0.7565 GB, free: 59.8 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/1.018, allocations: 473.7 kB / 0.7569 GB, free: 59.34 MB / 0.4949 GB Notification: Performance of SimCode: time 9.02e-07/1.018, allocations: 0 / 0.7569 GB, free: 59.34 MB / 0.4949 GB Notification: Performance of Templates: time 0.6614/1.68, allocations: 465.6 MB / 1.212 GB, free: 170.2 MB / 0.4949 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.4504527002573]