Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001632/0.002725, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001592/0.002714, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.011/1.011, allocations: 173.3 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1024/1.113, allocations: 52.5 MB / 238.3 MB, free: 4.441 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_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.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 239.6 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.709e-05/2.896e-05, allocations: 2.312 kB / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01887/0.0189, allocations: 14.63 MB / 254.2 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.03011, allocations: 5.23 MB / 259.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002958/0.03306, allocations: 119.2 kB / 259.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004678/0.03774, allocations: 1.095 MB / 260.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00545/0.04319, allocations: 1.335 MB / 262 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.04605, allocations: 0.8842 MB / 262.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004639/0.05069, allocations: 3.774 MB / 266.6 MB, free: 7.984 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002355/0.05305, allocations: 1.893 MB / 268.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004676/0.05772, allocations: 3.209 MB / 271.7 MB, free: 2.766 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003063/0.06079, allocations: 1.777 MB / 273.5 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001239/0.06203, allocations: 464 kB / 274 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1688/0.2308, allocations: 0.6597 MB / 274.6 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002081/0.2329, allocations: 0.9198 MB / 275.5 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005017/0.2379, allocations: 1.128 MB / 276.7 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007464/0.2454, allocations: 3.102 MB / 279.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.061e-05/0.2454, allocations: 0 / 279.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.407e-06/0.2454, allocations: 0 / 279.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0003662/0.2458, allocations: 4.438 kB / 279.8 MB, free: 7.453 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.01269/0.2584, allocations: 4.808 MB / 284.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.2585, allocations: 9.859 kB / 284.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002689/0.2612, allocations: 0.8466 MB / 285.4 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003893/0.2651, allocations: 1.475 MB / 286.9 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001839/0.2653, allocations: 234.9 kB / 287.1 MB, free: 5.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004934/0.2658, allocations: 320 kB / 287.5 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003416/0.2692, allocations: 2.301 MB / 289.8 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.419e-05/0.2692, allocations: 10.39 kB / 289.8 MB, free: 4.922 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/0.2694, allocations: 127.4 kB / 289.9 MB, free: 4.918 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001167/0.2695, allocations: 150.1 kB / 290 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.271, allocations: 0.9343 MB / 291 MB, free: 4.812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01214/0.2832, allocations: 8.634 MB / 299.6 MB, free: 1.543 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.2845, allocations: 1.036 MB / 300.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004829/0.285, allocations: 402.2 kB / 301 MB, free: 1.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002651/0.2876, allocations: 1.304 MB / 302.3 MB, free: 15.9 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.2877, allocations: 46.56 kB / 302.4 MB, free: 15.85 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 4.799e-06/0.2877, allocations: 4 kB / 302.4 MB, free: 15.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.006072/0.2938, allocations: 3.14 MB / 305.5 MB, free: 13.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.2938, allocations: 74.09 kB / 305.6 MB, free: 13.13 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.2951, allocations: 1.248 MB / 306.8 MB, free: 12.24 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-05/0.2952, allocations: 53.7 kB / 306.9 MB, free: 12.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006401/0.2958, allocations: 1.332 MB / 308.2 MB, free: 10.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/0.2962, allocations: 0.4969 MB / 308.7 MB, free: 10.44 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003169/0.2965, allocations: 320 kB / 309 MB, free: 10.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.92e-05/0.2966, allocations: 304.4 kB / 309.3 MB, free: 9.863 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004342/0.297, allocations: 210.7 kB / 309.5 MB, free: 9.656 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005174/0.2975, allocations: 0.8163 MB / 310.4 MB, free: 8.617 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.2986, allocations: 1.208 MB / 311.6 MB, free: 7.262 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/0.2986, allocations: 6.844 kB / 311.6 MB, free: 7.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001424/0.3, allocations: 1.126 MB / 312.7 MB, free: 6.238 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.3, allocations: 15.75 kB / 312.7 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.744e-05/0.3001, allocations: 23.98 kB / 312.7 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001904/0.3002, allocations: 79.86 kB / 312.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.3014, allocations: 0.5053 MB / 313.3 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008704/0.3023, allocations: 1.208 MB / 314.5 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.3033, allocations: 67.94 kB / 314.6 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.429e-05/0.3034, allocations: 64 kB / 314.7 MB, free: 4.234 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.001194/0.3046, allocations: 235.1 kB / 314.9 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.3049, allocations: 159.9 kB / 315 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.3062, allocations: 0.7912 MB / 315.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.3062, allocations: 16 kB / 315.9 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3062, allocations: 4 kB / 315.9 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.3062, allocations: 7.969 kB / 315.9 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00464/0.3108, allocations: 2.222 MB / 318.1 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.3109, allocations: 4 kB / 318.1 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009214/0.3118, allocations: 324.8 kB / 318.4 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008227/0.3126, allocations: 213.5 kB / 318.6 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002009/0.3128, allocations: 54.53 kB / 318.7 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.325e-05/0.3129, allocations: 31.98 kB / 318.7 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007829/0.3136, allocations: 1.167 MB / 319.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.3136, allocations: 4 kB / 319.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.315, allocations: 1.153 MB / 321 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002404/0.3153, allocations: 24 kB / 321 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.3157, allocations: 39.98 kB / 321.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3158, allocations: 104 kB / 321.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.3159, allocations: 27.98 kB / 321.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006722/0.3165, allocations: 0.609 MB / 321.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3165, allocations: 0 / 321.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001509/0.318, allocations: 0.5195 MB / 322.3 MB, free: 12.73 MB / 298.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.0003064/0.3183, allocations: 151.5 kB / 322.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.3197, allocations: 0.9508 MB / 323.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.125e-05/0.3197, allocations: 36.42 kB / 323.5 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005233/0.3203, allocations: 0.5031 MB / 324 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.3215, allocations: 0.6006 MB / 324.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02054/0.342, allocations: 5 MB / 329.6 MB, free: 5.582 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000785/0.3428, allocations: 0.6186 MB / 330.2 MB, free: 4.945 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001088/0.3439, allocations: 280.7 kB / 330.5 MB, free: 4.668 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008418/0.3448, allocations: 483.1 kB / 330.9 MB, free: 4.188 MB / 298.7 MB Notification: Performance of SimCode: time 2.575e-06/0.3448, allocations: 0 / 330.9 MB, free: 4.188 MB / 298.7 MB Notification: Performance of Templates: time 0.04291/0.3877, allocations: 26.13 MB / 357.1 MB, free: 10.53 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/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.378842734731734]