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.0008141/0.0008141, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001108/0.001922, allocations: 445.7 kB / 10.37 MB, free: 328 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.0007151/0.0007151, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000945/0.00166, allocations: 463.6 kB / 11.71 MB, free: 2.453 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.8419/0.8419, allocations: 158.6 MB / 171.1 MB, free: 2.594 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.141/0.9829, allocations: 49.49 MB / 220.6 MB, free: 1.453 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 1.423e-06/1.423e-06, allocations: 0 / 221.9 MB, free: 160 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.338e-05, allocations: 6.25 kB / 221.9 MB, free: 152 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01482/0.01484, allocations: 14.57 MB / 236.4 MB, free: 1.5 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.009237/0.02408, allocations: 5.266 MB / 241.7 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002981/0.02706, allocations: 107.3 kB / 241.8 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002878/0.02994, allocations: 1.087 MB / 242.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003964/0.0339, allocations: 1.285 MB / 244.2 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.036, allocations: 0.9154 MB / 245.1 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004297/0.0403, allocations: 3.782 MB / 248.9 MB, free: 5.008 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002681/0.04298, allocations: 1.861 MB / 250.7 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004387/0.04737, allocations: 3.186 MB / 253.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002569/0.04994, allocations: 1.777 MB / 255.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001134/0.05107, allocations: 468 kB / 256.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001674/0.05275, allocations: 0.6675 MB / 256.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009593/0.05371, allocations: 0.9156 MB / 257.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.0557, allocations: 1.127 MB / 258.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004345/0.06005, allocations: 3.088 MB / 262 MB, free: 7.793 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.479e-05/0.06006, allocations: 0 / 262 MB, free: 7.793 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.06006, allocations: 0 / 262 MB, free: 7.793 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001181/0.06018, allocations: 0 / 262 MB, free: 7.793 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.00672/0.0669, allocations: 4.817 MB / 266.8 MB, free: 2.902 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.06694, allocations: 8.031 kB / 266.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.06871, allocations: 0.8553 MB / 267.6 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/0.07084, allocations: 1.355 MB / 269 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.07097, allocations: 238.7 kB / 269.2 MB, free: 404 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/0.07126, allocations: 316.3 kB / 269.5 MB, free: 88 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00273/0.07399, allocations: 2.295 MB / 271.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.046e-05/0.07406, allocations: 11.89 kB / 271.8 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002383/0.0743, allocations: 124 kB / 272 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.07444, allocations: 150.2 kB / 272.1 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.07639, allocations: 0.9345 MB / 273 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009711/0.08611, allocations: 8.655 MB / 281.7 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.08738, allocations: 1.038 MB / 282.7 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004633/0.08784, allocations: 408.4 kB / 283.1 MB, free: 1.969 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001943/0.08978, allocations: 1.285 MB / 284.4 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.08982, allocations: 63.48 kB / 284.5 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 2.615e-06/0.08982, allocations: 0 / 284.5 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.1077/0.1975, allocations: 3.154 MB / 287.6 MB, free: 33.75 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.1975, allocations: 67.14 kB / 287.7 MB, free: 33.69 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.1988, allocations: 1.251 MB / 288.9 MB, free: 33.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.91e-05/0.1988, allocations: 46.72 kB / 289 MB, free: 33.49 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006002/0.1994, allocations: 1.329 MB / 290.3 MB, free: 32.76 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/0.1997, allocations: 0.4963 MB / 290.8 MB, free: 32.43 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003139/0.2, allocations: 321.4 kB / 291.1 MB, free: 32.4 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.221e-05/0.2, allocations: 303.4 kB / 291.4 MB, free: 32.11 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.2004, allocations: 211 kB / 291.6 MB, free: 32.1 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004674/0.2008, allocations: 0.8209 MB / 292.5 MB, free: 31.36 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009756/0.2018, allocations: 1.206 MB / 293.7 MB, free: 30.64 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.49e-05/0.2018, allocations: 5.438 kB / 293.7 MB, free: 30.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001408/0.2032, allocations: 1.121 MB / 294.8 MB, free: 30.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.2032, allocations: 17.97 kB / 294.8 MB, free: 30.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/0.2033, allocations: 19.8 kB / 294.8 MB, free: 30.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000199/0.2035, allocations: 86.53 kB / 294.9 MB, free: 30.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.2046, allocations: 0.5312 MB / 295.4 MB, free: 30.51 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005063/0.2051, allocations: 1.205 MB / 296.6 MB, free: 29.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006827/0.2058, allocations: 68.16 kB / 296.7 MB, free: 29.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.057e-05/0.2059, allocations: 68.56 kB / 296.8 MB, free: 29.38 MB / 282.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 (231): * Single equations (assignments): 228 * 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.0005761/0.2065, allocations: 237.9 kB / 297 MB, free: 29.24 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.2067, allocations: 152.6 kB / 297.2 MB, free: 29.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009125/0.2076, allocations: 0.8046 MB / 298 MB, free: 29.12 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2076, allocations: 13.59 kB / 298 MB, free: 29.12 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2076, allocations: 0 / 298 MB, free: 29.12 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.2076, allocations: 12.34 kB / 298 MB, free: 29.12 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/0.2102, allocations: 2.204 MB / 300.2 MB, free: 28.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2102, allocations: 4.25 kB / 300.2 MB, free: 28.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007585/0.2109, allocations: 362.9 kB / 300.6 MB, free: 28.71 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003828/0.2113, allocations: 211.7 kB / 300.8 MB, free: 28.6 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00014/0.2114, allocations: 64.41 kB / 300.8 MB, free: 28.58 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.406e-05/0.2115, allocations: 29.56 kB / 300.9 MB, free: 28.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003884/0.2119, allocations: 1.162 MB / 302 MB, free: 27.45 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2119, allocations: 3.938 kB / 302 MB, free: 27.45 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.2129, allocations: 1.153 MB / 303.2 MB, free: 27.1 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.2131, allocations: 23.03 kB / 303.2 MB, free: 27.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.2134, allocations: 41.03 kB / 303.2 MB, free: 27.1 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.2135, allocations: 90.83 kB / 303.3 MB, free: 27.1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.272e-05/0.2135, allocations: 31.81 kB / 303.4 MB, free: 27.1 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004882/0.214, allocations: 0.61 MB / 304 MB, free: 27.05 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.214, allocations: 0 / 304 MB, free: 27.05 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001242/0.2153, allocations: 0.5175 MB / 304.5 MB, free: 27.04 MB / 282.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 (140): * Single equations (assignments): 137 * 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.0002377/0.2155, allocations: 151.6 kB / 304.6 MB, free: 26.97 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.2166, allocations: 0.9443 MB / 305.6 MB, free: 26.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.197e-05/0.2167, allocations: 41.36 kB / 305.6 MB, free: 26.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004151/0.2171, allocations: 0.5022 MB / 306.1 MB, free: 26.64 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.2181, allocations: 0.6043 MB / 306.7 MB, free: 26.6 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01845/0.2366, allocations: 4.994 MB / 311.7 MB, free: 24.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.2371, allocations: 0.6196 MB / 312.3 MB, free: 24.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0008604/0.2379, allocations: 282.3 kB / 312.6 MB, free: 24.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006597/0.2386, allocations: 479.3 kB / 313.1 MB, free: 24.09 MB / 282.7 MB Notification: Performance of SimCode: time 1.572e-06/0.2386, allocations: 4 kB / 313.1 MB, free: 24.08 MB / 282.7 MB Notification: Performance of Templates: time 0.03253/0.2711, allocations: 26.22 MB / 339.3 MB, free: 15.47 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0538116032257676]