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.002541/0.002541, allocations: 99.53 kB / 21.73 MB, free: 2.688 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.00189/0.00189, allocations: 166.9 kB / 25.03 MB, free: 8.422 MB / 18.57 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.331/1.331, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 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: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 250.4 MB, free: 7.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.816e-05, allocations: 6.312 kB / 250.4 MB, free: 7.816 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.02053/0.02056, allocations: 14.75 MB / 265.1 MB, free: 8.988 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.03171, allocations: 5.023 MB / 270.2 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002698/0.03441, allocations: 111.2 kB / 270.3 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003874/0.03828, allocations: 1.067 MB / 271.3 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004618/0.0429, allocations: 1.292 MB / 272.6 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002517/0.04542, allocations: 0.9039 MB / 273.5 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006031/0.05145, allocations: 3.778 MB / 277.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003264/0.05471, allocations: 1.81 MB / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004353/0.05906, allocations: 2.616 MB / 281.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003324/0.06239, allocations: 1.886 MB / 283.6 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008431/0.06323, allocations: 476 kB / 284.1 MB, free: 5.898 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.06471, allocations: 0.6714 MB / 284.8 MB, free: 5.227 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001458/0.06617, allocations: 1.192 MB / 286 MB, free: 4.031 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00202/0.06819, allocations: 1.384 MB / 287.3 MB, free: 2.645 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008371/0.07656, allocations: 6.357 MB / 293.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.07657, allocations: 4 kB / 293.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.07657, allocations: 0 / 293.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001708/0.07674, allocations: 0 / 293.7 MB, free: 12.27 MB / 282.7 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.01284/0.08957, allocations: 4.808 MB / 298.5 MB, free: 7.387 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.08962, allocations: 12.03 kB / 298.5 MB, free: 7.375 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003625/0.09324, allocations: 0.9822 MB / 299.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/0.09892, allocations: 1.99 MB / 301.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/0.09921, allocations: 238.7 kB / 301.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007266/0.09993, allocations: 312.3 kB / 302 MB, free: 3.816 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008317/0.1083, allocations: 4.067 MB / 306.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.563e-05/0.1083, allocations: 11.83 kB / 306.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/0.1087, allocations: 136 kB / 306.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001973/0.1089, allocations: 146.2 kB / 306.4 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006694/0.1156, allocations: 2.792 MB / 309.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03206/0.1476, allocations: 17.4 MB / 326.6 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003592/0.1512, allocations: 1.436 MB / 328 MB, free: 8.793 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00174/0.1529, allocations: 0.7331 MB / 328.7 MB, free: 8.055 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00529/0.1582, allocations: 2.043 MB / 330.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.51e-05/0.1583, allocations: 46.39 kB / 330.8 MB, free: 5.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=108): time 3.727e-06/0.1583, allocations: 0 / 330.8 MB, free: 5.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=142): time 0.01253/0.1708, allocations: 4.676 MB / 335.5 MB, free: 1.203 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.1709, allocations: 64.72 kB / 335.6 MB, free: 1.129 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003762/0.1746, allocations: 2.155 MB / 337.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001642/0.1748, allocations: 49.69 kB / 337.8 MB, free: 14.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001908/0.1767, allocations: 1.758 MB / 339.5 MB, free: 13.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007722/0.1775, allocations: 0.5582 MB / 340.1 MB, free: 12.56 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007693/0.1783, allocations: 425 kB / 340.5 MB, free: 12.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002535/0.1785, allocations: 480.8 kB / 341 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.1797, allocations: 0.5192 MB / 341.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/0.1819, allocations: 1.483 MB / 343 MB, free: 9.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003446/0.1853, allocations: 2.173 MB / 345.2 MB, free: 6.742 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/0.1853, allocations: 8 kB / 345.2 MB, free: 6.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004448/0.1898, allocations: 2.08 MB / 347.2 MB, free: 4.633 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.1898, allocations: 12 kB / 347.3 MB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.259e-05/0.1899, allocations: 20 kB / 347.3 MB, free: 4.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00048/0.1903, allocations: 131.6 kB / 347.4 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/0.1923, allocations: 491.2 kB / 347.9 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/0.1941, allocations: 1.81 MB / 349.7 MB, free: 2.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.1957, allocations: 111.9 kB / 349.8 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/0.1959, allocations: 83.98 kB / 349.9 MB, free: 1.855 MB / 330.7 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.001827/0.1977, allocations: 0.8472 MB / 350.7 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000562/0.1983, allocations: 246.7 kB / 351 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.14/0.3383, allocations: 1.456 MB / 352.4 MB, free: 97.1 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.3383, allocations: 15.06 kB / 352.4 MB, free: 97.1 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3383, allocations: 1.156 kB / 352.4 MB, free: 97.1 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.3384, allocations: 7.906 kB / 352.5 MB, free: 97.1 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007471/0.3458, allocations: 4.702 MB / 357.2 MB, free: 96.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.3458, allocations: 3.219 kB / 357.2 MB, free: 96.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.3472, allocations: 322.2 kB / 357.5 MB, free: 96.6 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/0.3474, allocations: 101.9 kB / 357.6 MB, free: 96.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.91e-05/0.3475, allocations: 35.72 kB / 357.6 MB, free: 96.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007221/0.3482, allocations: 1.78 MB / 359.4 MB, free: 94.85 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3482, allocations: 0 / 359.4 MB, free: 94.85 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003181/0.3514, allocations: 2.312 MB / 361.7 MB, free: 93.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009113/0.3523, allocations: 356.9 kB / 362 MB, free: 93.85 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002269/0.3526, allocations: 27.72 kB / 362.1 MB, free: 93.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008879/0.3535, allocations: 77.31 kB / 362.1 MB, free: 93.81 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001632/0.3536, allocations: 91.47 kB / 362.2 MB, free: 93.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-05/0.3537, allocations: 34.81 kB / 362.3 MB, free: 93.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001477/0.3552, allocations: 1.201 MB / 363.5 MB, free: 93.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3552, allocations: 4.328 kB / 363.5 MB, free: 93.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0016/0.3568, allocations: 0.5234 MB / 364 MB, free: 93.26 MB / 330.7 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.0003205/0.3571, allocations: 167.2 kB / 364.2 MB, free: 93.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002435/0.3595, allocations: 1.72 MB / 365.9 MB, free: 92.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3595, allocations: 4 kB / 365.9 MB, free: 92.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.3606, allocations: 0.8787 MB / 366.8 MB, free: 91.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/0.3627, allocations: 493.7 kB / 367.2 MB, free: 91.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007044/0.3697, allocations: 5.259 MB / 372.5 MB, free: 86.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/0.3709, allocations: 1.602 MB / 374.1 MB, free: 84.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001204/0.3721, allocations: 418.5 kB / 374.5 MB, free: 84.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.3725, allocations: 152.5 kB / 374.7 MB, free: 84.13 MB / 330.7 MB Notification: Performance of SimCode: time 1.403e-06/0.3725, allocations: 0 / 374.7 MB, free: 84.13 MB / 330.7 MB Notification: Performance of Templates: time 0.03516/0.4077, allocations: 24.33 MB / 399 MB, free: 59.84 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/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/jenkins/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.553129091043957]