Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.001817/0.001817, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.001685/0.001685, allocations: 210.7 kB / 24.48 MB, free: 3.977 MB / 14.72 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 1.422/1.422, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 43.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2052, allocations: 53.38 MB / 432.4 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01818/0.2234, allocations: 13.78 MB / 446.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009148/0.2325, allocations: 5.073 MB / 451.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.2338, allocations: 127.2 kB / 451.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002399/0.2362, allocations: 1.064 MB / 452.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002827/0.239, allocations: 1.282 MB / 453.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.2408, allocations: 0.9016 MB / 454.6 MB, free: 428 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003811/0.2447, allocations: 3.649 MB / 458.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.2472, allocations: 1.928 MB / 460.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00206/0.2493, allocations: 1.787 MB / 461.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/0.2519, allocations: 2.149 MB / 464.1 MB, free: 6.812 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006098/0.2525, allocations: 480 kB / 464.6 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.2537, allocations: 0.6911 MB / 465.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.2548, allocations: 1.153 MB / 466.4 MB, free: 4.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001701/0.2565, allocations: 1.634 MB / 468 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006362/0.2629, allocations: 6.337 MB / 474.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.2629, allocations: 3.938 kB / 474.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2629, allocations: 0 / 474.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.388e-05/0.2629, allocations: 0 / 474.4 MB, free: 12.49 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009234/0.2722, allocations: 4.283 MB / 478.7 MB, free: 8.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.2722, allocations: 8.031 kB / 478.7 MB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002975/0.2752, allocations: 0.6349 MB / 479.3 MB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004297/0.2795, allocations: 2.206 MB / 481.5 MB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002026/0.2797, allocations: 238.7 kB / 481.7 MB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005008/0.2802, allocations: 324 kB / 482.1 MB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006929/0.2871, allocations: 4.118 MB / 486.2 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.897e-05/0.2872, allocations: 15.89 kB / 486.2 MB, free: 500 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003089/0.2875, allocations: 120 kB / 486.3 MB, free: 380 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001624/0.2877, allocations: 154.2 kB / 486.5 MB, free: 224 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005991/0.2937, allocations: 3.39 MB / 489.9 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01843/0.3121, allocations: 11.3 MB / 0.4894 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003526/0.3156, allocations: 1.745 MB / 0.4911 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.3173, allocations: 0.9375 MB / 0.492 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004372/0.3216, allocations: 2.145 MB / 0.4941 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.3217, allocations: 47.56 kB / 0.4942 GB, free: 12.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.845e-06/0.3217, allocations: 0 / 0.4942 GB, free: 12.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01166/0.3333, allocations: 5.814 MB / 0.4998 GB, free: 6.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.3334, allocations: 68.72 kB / 0.4999 GB, free: 6.332 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.3358, allocations: 1.744 MB / 0.5016 GB, free: 4.586 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.3359, allocations: 53.7 kB / 0.5017 GB, free: 4.527 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001173/0.3371, allocations: 1.563 MB / 0.5032 GB, free: 2.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004264/0.3375, allocations: 0.5074 MB / 0.5037 GB, free: 2.438 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000543/0.3381, allocations: 339.4 kB / 0.504 GB, free: 2.098 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3382, allocations: 305.1 kB / 0.5043 GB, free: 1.797 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.3395, allocations: 0.7691 MB / 0.5051 GB, free: 1.027 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/0.3413, allocations: 1.408 MB / 0.5064 GB, free: 15.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003278/0.3445, allocations: 2.312 MB / 0.5087 GB, free: 12.76 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/0.3446, allocations: 12 kB / 0.5087 GB, free: 12.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004107/0.3487, allocations: 2.463 MB / 0.5111 GB, free: 10.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.3487, allocations: 16 kB / 0.5111 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/0.3487, allocations: 24.72 kB / 0.5111 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00037/0.3491, allocations: 122.5 kB / 0.5113 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/0.351, allocations: 487.2 kB / 0.5117 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.3521, allocations: 1.283 MB / 0.513 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.3534, allocations: 115.8 kB / 0.5131 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.3535, allocations: 87.98 kB / 0.5132 GB, free: 8.039 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00151/0.355, allocations: 0.9812 MB / 0.5141 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/0.3553, allocations: 202.8 kB / 0.5143 GB, free: 6.848 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003477/0.3588, allocations: 1.956 MB / 0.5162 GB, free: 4.871 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.3588, allocations: 16 kB / 0.5163 GB, free: 4.855 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3588, allocations: 3.938 kB / 0.5163 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.3589, allocations: 3.984 kB / 0.5163 GB, free: 4.848 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007282/0.3661, allocations: 4.227 MB / 0.5204 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.3661, allocations: 8 kB / 0.5204 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001452/0.3676, allocations: 303.6 kB / 0.5207 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.3679, allocations: 94.72 kB / 0.5208 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.372e-05/0.368, allocations: 39.98 kB / 0.5208 GB, free: 100 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.369, allocations: 1.241 MB / 0.522 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.369, allocations: 4 kB / 0.522 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004785/0.3738, allocations: 3.083 MB / 0.525 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008957/0.3747, allocations: 370.6 kB / 0.5254 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/0.375, allocations: 27.94 kB / 0.5254 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009644/0.3759, allocations: 83.89 kB / 0.5255 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000179/0.3761, allocations: 93.08 kB / 0.5256 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.486e-05/0.3762, allocations: 43.92 kB / 0.5256 GB, free: 11.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001698/0.3779, allocations: 1.16 MB / 0.5268 GB, free: 9.855 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3779, allocations: 0 / 0.5268 GB, free: 9.855 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001558/0.3795, allocations: 0.5312 MB / 0.5273 GB, free: 9.324 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.00031/0.3798, allocations: 176.6 kB / 0.5274 GB, free: 9.145 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00324/0.383, allocations: 1.968 MB / 0.5294 GB, free: 7.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.383, allocations: 3.984 kB / 0.5294 GB, free: 7.156 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.3846, allocations: 0.9536 MB / 0.5303 GB, free: 6.184 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.3866, allocations: 485.8 kB / 0.5308 GB, free: 5.723 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1778/0.5644, allocations: 5.672 MB / 0.5363 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002593/0.567, allocations: 1.711 MB / 0.538 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001576/0.5685, allocations: 0.4951 MB / 0.5385 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004402/0.569, allocations: 149 kB / 0.5386 GB, free: 100.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.569, allocations: 6.281 kB / 0.5386 GB, free: 100.6 MB / 446.1 MB Notification: Performance of Templates: time 0.04/0.609, allocations: 29.24 MB / 0.5672 GB, free: 79.32 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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: 5.452207237991388]