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.0019/0.0019, allocations: 82.7 kB / 22 MB, free: 5.18 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.00223/0.00223, allocations: 161.8 kB / 25.25 MB, free: 3.02 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.337/1.337, allocations: 158.6 MB / 187 MB, free: 6.473 MB / 174.1 MB " [Timeout remaining time 179] 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.001835/0.001835, allocations: 52.39 kB / 299.4 MB, free: 6.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2082, allocations: 49.14 MB / 348.5 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01749/0.2257, allocations: 13.18 MB / 361.7 MB, free: 2.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00999/0.2357, allocations: 4.871 MB / 366.6 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002071/0.2378, allocations: 107.3 kB / 366.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002933/0.2407, allocations: 1.052 MB / 367.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003851/0.2445, allocations: 1.247 MB / 369 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.2468, allocations: 0.8963 MB / 369.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004597/0.2514, allocations: 3.635 MB / 373.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002545/0.254, allocations: 1.791 MB / 375.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.2563, allocations: 1.78 MB / 377.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002756/0.2591, allocations: 1.93 MB / 379 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006607/0.2597, allocations: 480 kB / 379.5 MB, free: 352 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00125/0.261, allocations: 0.6599 MB / 380.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00113/0.2621, allocations: 1.149 MB / 381.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001804/0.2639, allocations: 1.61 MB / 382.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006611/0.2705, allocations: 6.301 MB / 389.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2705, allocations: 0 / 389.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2705, allocations: 4 kB / 389.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.129e-05/0.2706, allocations: 3.938 kB / 389.2 MB, free: 6.59 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.009178/0.2798, allocations: 4.248 MB / 393.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2798, allocations: 8.031 kB / 393.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002784/0.2826, allocations: 0.631 MB / 394.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003733/0.2864, allocations: 2.054 MB / 396.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.2866, allocations: 238.6 kB / 396.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005044/0.2871, allocations: 324 kB / 396.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00697/0.2941, allocations: 4.11 MB / 400.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.48e-05/0.2941, allocations: 4 kB / 400.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002923/0.2944, allocations: 128 kB / 401 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001652/0.2946, allocations: 146.2 kB / 401.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005963/0.3005, allocations: 3.366 MB / 404.5 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0183/0.3188, allocations: 11.29 MB / 415.8 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.3223, allocations: 1.673 MB / 417.4 MB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001612/0.3239, allocations: 0.9065 MB / 418.3 MB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003909/0.3278, allocations: 2.101 MB / 420.4 MB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.3279, allocations: 47.5 kB / 420.5 MB, free: 6.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.926e-06/0.3279, allocations: 0 / 420.5 MB, free: 6.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01168/0.3396, allocations: 5.797 MB / 426.3 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.3396, allocations: 72.72 kB / 426.4 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002396/0.342, allocations: 1.727 MB / 428.1 MB, free: 15.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.742e-05/0.3421, allocations: 45.7 kB / 428.1 MB, free: 15.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.3433, allocations: 1.57 MB / 429.7 MB, free: 13.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004293/0.3437, allocations: 0.5036 MB / 430.2 MB, free: 12.94 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/0.3442, allocations: 331.4 kB / 430.5 MB, free: 12.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.3444, allocations: 313 kB / 430.8 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.3457, allocations: 0.7652 MB / 431.6 MB, free: 11.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.3475, allocations: 1.4 MB / 433 MB, free: 9.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003311/0.3508, allocations: 2.312 MB / 435.3 MB, free: 7.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.587e-06/0.3508, allocations: 4 kB / 435.3 MB, free: 7.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004103/0.3549, allocations: 2.471 MB / 437.8 MB, free: 4.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.3549, allocations: 19.98 kB / 437.8 MB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/0.355, allocations: 24 kB / 437.8 MB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003525/0.3553, allocations: 118.5 kB / 437.9 MB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001894/0.3572, allocations: 495.6 kB / 438.4 MB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.3583, allocations: 1.287 MB / 439.7 MB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.3595, allocations: 112 kB / 439.8 MB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/0.3597, allocations: 83.98 kB / 439.9 MB, free: 2.547 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.001512/0.3612, allocations: 0.9811 MB / 440.9 MB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.3615, allocations: 198.7 kB / 441.1 MB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003469/0.365, allocations: 1.945 MB / 443 MB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.365, allocations: 15.94 kB / 443 MB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.365, allocations: 0 / 443 MB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.365, allocations: 7.969 kB / 443 MB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00712/0.3721, allocations: 4.219 MB / 447.3 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3721, allocations: 0 / 447.3 MB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/0.3736, allocations: 323.8 kB / 447.6 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.3739, allocations: 102.4 kB / 447.7 MB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-05/0.374, allocations: 31.98 kB / 447.7 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.3751, allocations: 1.245 MB / 449 MB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.3751, allocations: 4 kB / 449 MB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004868/0.3799, allocations: 3.075 MB / 452 MB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000843/0.3808, allocations: 374.5 kB / 452.4 MB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.381, allocations: 31.98 kB / 452.4 MB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009313/0.3819, allocations: 80.06 kB / 452.5 MB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.3821, allocations: 97.08 kB / 452.6 MB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.3822, allocations: 39.98 kB / 452.6 MB, free: 5.527 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001776/0.384, allocations: 1.148 MB / 453.8 MB, free: 4.387 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.384, allocations: 0 / 453.8 MB, free: 4.387 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001816/0.3858, allocations: 0.5234 MB / 454.3 MB, free: 3.863 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.0003088/0.3861, allocations: 162.9 kB / 454.5 MB, free: 3.695 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003303/0.3894, allocations: 1.983 MB / 456.5 MB, free: 1.695 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3894, allocations: 0 / 456.5 MB, free: 1.695 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.391, allocations: 0.9448 MB / 457.4 MB, free: 0.7344 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/0.3929, allocations: 470.2 kB / 457.9 MB, free: 280 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008979/0.4019, allocations: 5.663 MB / 463.5 MB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/0.4039, allocations: 1.721 MB / 465.2 MB, free: 8.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001341/0.4052, allocations: 0.4926 MB / 465.7 MB, free: 8.293 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004223/0.4057, allocations: 140.5 kB / 465.9 MB, free: 8.156 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4057, allocations: 0 / 465.9 MB, free: 8.156 MB / 430.1 MB Notification: Performance of Templates: time 0.1934/0.599, allocations: 24.49 MB / 490.4 MB, free: 101.2 MB / 430.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 -s ida -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: 5.257679716101848]