Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001497/0.001497, allocations: 99.12 kB / 21.93 MB, free: 5.203 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.001563/0.001563, allocations: 203.2 kB / 25.22 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 207.7 MB / 236.1 MB, free: 9.766 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 55.92 kB / 348.5 MB, free: 9.359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.292, allocations: 49.16 MB / 397.6 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01496/0.307, allocations: 13.21 MB / 410.8 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01213/0.3191, allocations: 4.859 MB / 415.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004031/0.3232, allocations: 111.5 kB / 415.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004142/0.3273, allocations: 1.055 MB / 416.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005918/0.3332, allocations: 1.24 MB / 418.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00321/0.3364, allocations: 0.8921 MB / 419 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006821/0.3433, allocations: 3.64 MB / 422.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004547/0.3478, allocations: 1.791 MB / 424.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004117/0.3519, allocations: 1.778 MB / 426.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004744/0.3567, allocations: 1.937 MB / 428.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00212/0.3588, allocations: 480 kB / 428.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004133/0.3629, allocations: 0.656 MB / 429.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002471/0.3654, allocations: 1.153 MB / 430.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004402/0.3698, allocations: 1.614 MB / 432 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.381, allocations: 6.305 MB / 438.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.381, allocations: 0 / 438.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.381, allocations: 0 / 438.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002744/0.3813, allocations: 0 / 438.3 MB, free: 10.3 MB / 350.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.01623/0.3975, allocations: 4.244 MB / 442.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.3976, allocations: 8.031 kB / 442.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003821/0.4014, allocations: 0.6349 MB / 443.2 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005957/0.4074, allocations: 2.054 MB / 445.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003288/0.4077, allocations: 238.7 kB / 445.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/0.409, allocations: 320.1 kB / 445.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/0.4207, allocations: 4.11 MB / 449.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001604/0.4209, allocations: 4 kB / 449.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008988/0.4218, allocations: 127.9 kB / 450 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002105/0.422, allocations: 150.2 kB / 450.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009022/0.431, allocations: 3.362 MB / 453.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02689/0.4579, allocations: 11.29 MB / 464.9 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/0.4619, allocations: 1.673 MB / 466.5 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00185/0.4637, allocations: 0.9025 MB / 467.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005539/0.4693, allocations: 2.09 MB / 469.5 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/0.4693, allocations: 47.5 kB / 469.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 4.038e-06/0.4693, allocations: 4 kB / 469.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01395/0.4833, allocations: 5.808 MB / 475.4 MB, free: 4.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.4834, allocations: 68.72 kB / 475.4 MB, free: 4.535 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003661/0.487, allocations: 1.727 MB / 477.2 MB, free: 2.805 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001775/0.4872, allocations: 49.7 kB / 477.2 MB, free: 2.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001399/0.4886, allocations: 1.571 MB / 478.8 MB, free: 1.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005974/0.4892, allocations: 0.5036 MB / 479.3 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006823/0.4899, allocations: 331.4 kB / 479.6 MB, free: 332 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.49, allocations: 301.1 kB / 479.9 MB, free: 28 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001471/0.4915, allocations: 0.7692 MB / 480.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/0.4934, allocations: 1.404 MB / 482.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003524/0.497, allocations: 2.312 MB / 484.4 MB, free: 10.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.387e-05/0.497, allocations: 8 kB / 484.4 MB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004696/0.5017, allocations: 2.466 MB / 486.9 MB, free: 8.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/0.5017, allocations: 16 kB / 486.9 MB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.75e-05/0.5018, allocations: 20 kB / 486.9 MB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004178/0.5022, allocations: 123.2 kB / 487 MB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001876/0.5041, allocations: 495.1 kB / 487.5 MB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.5054, allocations: 1.291 MB / 488.8 MB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.5071, allocations: 107.9 kB / 488.9 MB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/0.5073, allocations: 83.98 kB / 489 MB, free: 6.27 MB / 398.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.002086/0.5094, allocations: 0.9773 MB / 490 MB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006155/0.51, allocations: 194.8 kB / 490.2 MB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003935/0.514, allocations: 1.948 MB / 492.1 MB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.885e-05/0.514, allocations: 15.94 kB / 492.1 MB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.514, allocations: 3.938 kB / 492.1 MB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.514, allocations: 11.97 kB / 492.1 MB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009906/0.5239, allocations: 4.211 MB / 496.3 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.5239, allocations: 8.25 kB / 496.4 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/0.5254, allocations: 319.5 kB / 496.7 MB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003392/0.5257, allocations: 98.45 kB / 496.8 MB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/0.5258, allocations: 28 kB / 496.8 MB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.527, allocations: 1.248 MB / 498 MB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.527, allocations: 7.938 kB / 498 MB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00525/0.5323, allocations: 3.067 MB / 0.4894 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/0.5335, allocations: 378.5 kB / 0.4897 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005851/0.5341, allocations: 28.22 kB / 0.4898 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.5354, allocations: 83.89 kB / 0.4898 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.5356, allocations: 97.08 kB / 0.4899 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.034e-05/0.5357, allocations: 32 kB / 0.49 GB, free: 9.262 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002663/0.5384, allocations: 1.152 MB / 0.4911 GB, free: 8.117 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5384, allocations: 4 kB / 0.4911 GB, free: 8.113 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002509/0.5409, allocations: 0.5234 MB / 0.4916 GB, free: 7.59 MB / 414.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.0004472/0.5413, allocations: 162.8 kB / 0.4918 GB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004041/0.5454, allocations: 1.975 MB / 0.4937 GB, free: 5.434 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.5454, allocations: 0 / 0.4937 GB, free: 5.434 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001764/0.5472, allocations: 0.9619 MB / 0.4946 GB, free: 4.457 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/0.5502, allocations: 481.4 kB / 0.4951 GB, free: 3.984 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01475/0.565, allocations: 5.688 MB / 0.5006 GB, free: 14.22 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00301/0.568, allocations: 1.67 MB / 0.5023 GB, free: 12.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008814/0.5689, allocations: 159.4 kB / 0.5024 GB, free: 12.36 MB / 430.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5689, allocations: 0 / 0.5024 GB, free: 12.36 MB / 430.1 MB Notification: Performance of Templates: time 0.3196/0.8885, allocations: 86.41 MB / 0.5868 GB, free: 140.7 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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: 13.262194032780826]