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.001173/0.001173, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001589/0.002761, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0009597/0.0009597, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001322/0.002281, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 0.9946/0.9946, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1447/1.139, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 222 MB, free: 40 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.729e-05, allocations: 2.312 kB / 222 MB, free: 36 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01441/0.01444, allocations: 14.58 MB / 236.6 MB, free: 1.379 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.009431/0.02387, allocations: 5.262 MB / 241.8 MB, free: 12.1 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002441/0.02631, allocations: 107.3 kB / 242 MB, free: 11.99 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002367/0.02868, allocations: 1.091 MB / 243 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003096/0.03177, allocations: 1.288 MB / 244.3 MB, free: 9.598 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001456/0.03323, allocations: 0.9115 MB / 245.2 MB, free: 8.684 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003768/0.037, allocations: 3.784 MB / 249 MB, free: 4.887 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002165/0.03916, allocations: 1.861 MB / 250.9 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003803/0.04297, allocations: 3.198 MB / 254.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002/0.04497, allocations: 1.777 MB / 255.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000595/0.04556, allocations: 468 kB / 256.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001439/0.047, allocations: 0.6597 MB / 257 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006232/0.04762, allocations: 0.9195 MB / 257.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.04874, allocations: 1.127 MB / 259 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003228/0.05196, allocations: 3.084 MB / 262.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.208e-05/0.05198, allocations: 0 / 262.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.05198, allocations: 0 / 262.1 MB, free: 7.668 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.802e-05/0.05205, allocations: 0 / 262.1 MB, free: 7.668 MB / 266.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.006357/0.0584, allocations: 4.813 MB / 266.9 MB, free: 2.781 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.05844, allocations: 11.97 kB / 266.9 MB, free: 2.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.06015, allocations: 0.8475 MB / 267.8 MB, free: 1.922 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.06191, allocations: 1.352 MB / 269.1 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.06202, allocations: 238.7 kB / 269.4 MB, free: 288 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.0623, allocations: 316.3 kB / 269.7 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.06457, allocations: 2.295 MB / 272 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.206e-05/0.06462, allocations: 15.88 kB / 272 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000167/0.06478, allocations: 124 kB / 272.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.489e-05/0.06488, allocations: 146.2 kB / 272.3 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.06613, allocations: 0.9306 MB / 273.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008438/0.07457, allocations: 8.655 MB / 281.8 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.0758, allocations: 1.05 MB / 282.9 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004464/0.07625, allocations: 400.4 kB / 283.3 MB, free: 1.852 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.07637, allocations: 53.28 kB / 283.3 MB, free: 1.801 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.0764, allocations: 51.88 kB / 283.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of pre-optimization done (n=131): time 4.468e-06/0.0764, allocations: 3.984 kB / 283.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=167): time 0.1222/0.1986, allocations: 3.874 MB / 287.3 MB, free: 33.62 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.1987, allocations: 70.06 kB / 287.3 MB, free: 33.56 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001447/0.2001, allocations: 1.234 MB / 288.6 MB, free: 33.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.601e-05/0.2002, allocations: 53.27 kB / 288.6 MB, free: 33.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007182/0.2009, allocations: 1.292 MB / 289.9 MB, free: 32.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003801/0.2013, allocations: 0.5898 MB / 290.5 MB, free: 32.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003826/0.2017, allocations: 342.4 kB / 290.8 MB, free: 32.29 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.065e-05/0.2017, allocations: 313.2 kB / 291.1 MB, free: 31.99 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.2021, allocations: 226.7 kB / 291.4 MB, free: 31.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005877/0.2027, allocations: 0.8299 MB / 292.2 MB, free: 31.24 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.204, allocations: 1.336 MB / 293.5 MB, free: 30.52 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/0.204, allocations: 5.406 kB / 293.5 MB, free: 30.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.001634/0.2057, allocations: 1.196 MB / 294.7 MB, free: 30.41 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.2057, allocations: 13.62 kB / 294.7 MB, free: 30.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/0.2057, allocations: 17.75 kB / 294.8 MB, free: 30.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000223/0.2059, allocations: 83.53 kB / 294.8 MB, free: 30.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.2073, allocations: 0.5856 MB / 295.4 MB, free: 30.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006029/0.208, allocations: 1.193 MB / 296.6 MB, free: 29.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007426/0.2087, allocations: 70.16 kB / 296.7 MB, free: 29.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-05/0.2088, allocations: 75.8 kB / 296.8 MB, free: 29.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (253): * Single equations (assignments): 250 * 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.0006395/0.2094, allocations: 244.5 kB / 297 MB, free: 29.11 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.2096, allocations: 169 kB / 297.2 MB, free: 29.11 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.2108, allocations: 0.886 MB / 298 MB, free: 28.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.2108, allocations: 17.38 kB / 298.1 MB, free: 28.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.2108, allocations: 0 / 298.1 MB, free: 28.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.2108, allocations: 11.92 kB / 298.1 MB, free: 28.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003308/0.2141, allocations: 2.591 MB / 300.7 MB, free: 28.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.2141, allocations: 352 / 300.7 MB, free: 28.44 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008272/0.2149, allocations: 405.1 kB / 301.1 MB, free: 28.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003679/0.2153, allocations: 231.6 kB / 301.3 MB, free: 28.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001415/0.2154, allocations: 66.75 kB / 301.4 MB, free: 28.29 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.735e-05/0.2155, allocations: 31.8 kB / 301.4 MB, free: 28.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003981/0.2159, allocations: 1.156 MB / 302.5 MB, free: 27.17 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.2159, allocations: 10.88 kB / 302.6 MB, free: 27.16 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.2171, allocations: 1.3 MB / 303.9 MB, free: 26.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/0.2172, allocations: 31.88 kB / 303.9 MB, free: 26.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003587/0.2176, allocations: 43.09 kB / 303.9 MB, free: 26.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.2177, allocations: 108.9 kB / 304 MB, free: 26.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.494e-05/0.2177, allocations: 34.16 kB / 304.1 MB, free: 26.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004748/0.2182, allocations: 0.6059 MB / 304.7 MB, free: 26.71 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2182, allocations: 3.281 kB / 304.7 MB, free: 26.71 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001273/0.2195, allocations: 0.5381 MB / 305.2 MB, free: 26.71 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (166): * Single equations (assignments): 163 * 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.0003227/0.2198, allocations: 161.4 kB / 305.4 MB, free: 26.63 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.2211, allocations: 1.057 MB / 306.4 MB, free: 26.45 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.117e-05/0.2211, allocations: 40.59 kB / 306.5 MB, free: 26.44 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005977/0.2217, allocations: 0.6452 MB / 307.1 MB, free: 26.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.2235, allocations: 4.636 MB / 311.7 MB, free: 21.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01826/0.2418, allocations: 5.102 MB / 316.8 MB, free: 19.36 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006053/0.2424, allocations: 0.6256 MB / 317.5 MB, free: 18.94 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001055/0.2434, allocations: 302.4 kB / 317.8 MB, free: 18.71 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007571/0.2442, allocations: 0.4903 MB / 318.3 MB, free: 18.29 MB / 282.7 MB Notification: Performance of SimCode: time 2.905e-06/0.2442, allocations: 0 / 318.3 MB, free: 18.29 MB / 282.7 MB Notification: Performance of Templates: time 0.03316/0.2773, allocations: 27.33 MB / 345.6 MB, free: 8.613 MB / 298.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 -ignoreHideResult -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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.429819170385599]