Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001439/0.001439, allocations: 88.28 kB / 20.96 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001706/0.001706, allocations: 156.9 kB / 24.26 MB, free: 148 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.542e-06/1.542e-06, allocations: 0 / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.621e-05, allocations: 2.312 kB / 272.2 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01959/0.01962, allocations: 13.8 MB / 286 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1349/0.1545, allocations: 5.078 MB / 291.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00362/0.1582, allocations: 125.9 kB / 291.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003696/0.1619, allocations: 1.078 MB / 292.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004664/0.1665, allocations: 1.317 MB / 293.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002823/0.1693, allocations: 0.9126 MB / 294.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006038/0.1754, allocations: 3.803 MB / 298.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004161/0.1795, allocations: 1.837 MB / 300.2 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005897/0.1854, allocations: 2.614 MB / 302.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003787/0.1892, allocations: 1.732 MB / 304.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001543/0.1908, allocations: 478.1 kB / 305 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002586/0.1934, allocations: 0.695 MB / 305.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001535/0.1949, allocations: 1.181 MB / 306.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002879/0.1978, allocations: 1.374 MB / 308.2 MB, free: 9.492 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005518/0.2033, allocations: 6.359 MB / 314.6 MB, free: 4.957 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2033, allocations: 4 kB / 314.6 MB, free: 4.953 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2033, allocations: 0 / 314.6 MB, free: 4.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001837/0.2035, allocations: 4 kB / 314.6 MB, free: 4.949 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.01028/0.2138, allocations: 4.244 MB / 318.9 MB, free: 0.668 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2138, allocations: 11.98 kB / 318.9 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003255/0.2171, allocations: 0.9861 MB / 319.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005103/0.2222, allocations: 2.302 MB / 322.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002921/0.2224, allocations: 239.9 kB / 322.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007281/0.2232, allocations: 315.4 kB / 322.7 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009125/0.2323, allocations: 4.129 MB / 326.8 MB, free: 8.695 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.59e-05/0.2324, allocations: 0 / 326.8 MB, free: 8.695 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003381/0.2327, allocations: 134.2 kB / 327 MB, free: 8.566 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001967/0.2329, allocations: 146.2 kB / 327.1 MB, free: 8.426 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00697/0.2399, allocations: 3.389 MB / 330.5 MB, free: 5.039 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02263/0.2625, allocations: 11.55 MB / 342 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003791/0.2663, allocations: 1.769 MB / 343.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/0.2681, allocations: 0.9365 MB / 344.7 MB, free: 6.758 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004809/0.2729, allocations: 2.162 MB / 346.9 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.273, allocations: 43.56 kB / 346.9 MB, free: 4.555 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 2.705e-06/0.273, allocations: 0 / 346.9 MB, free: 4.555 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.01355/0.2865, allocations: 5.838 MB / 352.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.2866, allocations: 68.72 kB / 352.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002973/0.2895, allocations: 1.752 MB / 354.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.2897, allocations: 45.7 kB / 354.6 MB, free: 12.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001546/0.2912, allocations: 1.575 MB / 356.2 MB, free: 11.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005628/0.2918, allocations: 0.4978 MB / 356.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000634/0.2924, allocations: 331.4 kB / 357 MB, free: 10.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.2926, allocations: 301.1 kB / 357.3 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.294, allocations: 0.773 MB / 358.1 MB, free: 9.355 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002138/0.2962, allocations: 1.404 MB / 359.5 MB, free: 7.688 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003667/0.2998, allocations: 2.314 MB / 361.8 MB, free: 5.184 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/0.2998, allocations: 4 kB / 361.8 MB, free: 5.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005013/0.3048, allocations: 2.565 MB / 364.4 MB, free: 2.715 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.3049, allocations: 16 kB / 364.4 MB, free: 2.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-05/0.3049, allocations: 20 kB / 364.4 MB, free: 2.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004322/0.3054, allocations: 114.9 kB / 364.5 MB, free: 2.559 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/0.3073, allocations: 491.2 kB / 365 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.3086, allocations: 1.279 MB / 366.3 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.3102, allocations: 127.9 kB / 366.4 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.3103, allocations: 79.98 kB / 366.5 MB, free: 0.4961 MB / 314.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.002062/0.3124, allocations: 0.9794 MB / 367.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006237/0.313, allocations: 242.7 kB / 367.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003864/0.3169, allocations: 1.949 MB / 369.7 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.3169, allocations: 23.92 kB / 369.7 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3169, allocations: 4 kB / 369.7 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.3169, allocations: 3.984 kB / 369.7 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009395/0.3263, allocations: 4.239 MB / 373.9 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.3263, allocations: 8.031 kB / 373.9 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/0.3278, allocations: 311.5 kB / 374.3 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003785/0.3282, allocations: 90.53 kB / 374.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.3283, allocations: 35.97 kB / 374.4 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/0.3298, allocations: 1.256 MB / 375.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.3298, allocations: 7.938 kB / 375.6 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005773/0.3356, allocations: 3.11 MB / 378.7 MB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.3368, allocations: 370.6 kB / 379.1 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/0.3373, allocations: 28.22 kB / 379.1 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.3386, allocations: 83.89 kB / 379.2 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.3388, allocations: 101 kB / 379.3 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.3389, allocations: 39.98 kB / 379.4 MB, free: 3.402 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002496/0.3414, allocations: 1.156 MB / 380.5 MB, free: 2.254 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3414, allocations: 0 / 380.5 MB, free: 2.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00223/0.3437, allocations: 0.5351 MB / 381 MB, free: 1.719 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.0004304/0.3441, allocations: 165.6 kB / 381.2 MB, free: 1.551 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003955/0.348, allocations: 1.97 MB / 383.2 MB, free: 15.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.3481, allocations: 9.75 kB / 383.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001808/0.3499, allocations: 0.953 MB / 384.1 MB, free: 14.58 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/0.3526, allocations: 0.4968 MB / 384.6 MB, free: 14.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.3649, allocations: 5.694 MB / 390.3 MB, free: 8.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002976/0.3679, allocations: 1.714 MB / 392 MB, free: 6.586 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002002/0.3699, allocations: 0.4965 MB / 392.5 MB, free: 6.086 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006302/0.3706, allocations: 144.5 kB / 392.7 MB, free: 5.941 MB / 346.7 MB Notification: Performance of SimCode: time 2.314e-06/0.3706, allocations: 0 / 392.7 MB, free: 5.941 MB / 346.7 MB Notification: Performance of Templates: time 0.05198/0.4225, allocations: 24.79 MB / 417.5 MB, free: 13.54 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.673898844048381]