Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.001361/0.001361, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.0009211/0.0009211, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8952/0.8952, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.349e-05, allocations: 5.266 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03103/0.03105, allocations: 15.61 MB / 288.6 MB, free: 1.832 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1333/0.1644, allocations: 5.253 MB / 293.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002444/0.1668, allocations: 127.8 kB / 294 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002591/0.1694, allocations: 1.082 MB / 295.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003363/0.1728, allocations: 1.317 MB / 296.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001893/0.1747, allocations: 0.9281 MB / 297.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004049/0.1787, allocations: 3.793 MB / 301.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002553/0.1813, allocations: 1.846 MB / 303 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004328/0.1856, allocations: 3.018 MB / 306 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002566/0.1882, allocations: 1.767 MB / 307.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009391/0.1891, allocations: 467.4 kB / 308.2 MB, free: 9.992 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001358/0.1905, allocations: 0.6783 MB / 308.9 MB, free: 9.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006767/0.1912, allocations: 1.143 MB / 310 MB, free: 9.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001588/0.1927, allocations: 1.357 MB / 311.4 MB, free: 8.332 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0037/0.1964, allocations: 3.3 MB / 314.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1964, allocations: 0 / 314.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1964, allocations: 0 / 314.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001263/0.1966, allocations: 0 / 314.7 MB, free: 6.336 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.006127/0.2027, allocations: 4.416 MB / 319.1 MB, free: 2.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2027, allocations: 8.031 kB / 319.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002342/0.2051, allocations: 0.9838 MB / 320.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/0.2079, allocations: 2.187 MB / 322.3 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.2081, allocations: 234.7 kB / 322.5 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003755/0.2085, allocations: 311.3 kB / 322.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004245/0.2127, allocations: 2.455 MB / 325.3 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.578e-05/0.2128, allocations: 11.8 kB / 325.3 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002399/0.213, allocations: 133 kB / 325.4 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001409/0.2132, allocations: 142.2 kB / 325.5 MB, free: 11.63 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002866/0.216, allocations: 1.189 MB / 326.7 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01269/0.2287, allocations: 10.78 MB / 337.5 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.2305, allocations: 1.237 MB / 338.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007149/0.2313, allocations: 0.4887 MB / 339.2 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002388/0.2336, allocations: 1.712 MB / 340.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.2337, allocations: 46.39 kB / 341 MB, free: 11.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=107): time 3.566e-06/0.2337, allocations: 4 kB / 341 MB, free: 11.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.006113/0.2398, allocations: 3.679 MB / 344.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.2398, allocations: 64.72 kB / 344.7 MB, free: 8.129 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.2414, allocations: 1.52 MB / 346.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.429e-05/0.2415, allocations: 49.7 kB / 346.3 MB, free: 6.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008239/0.2423, allocations: 1.667 MB / 348 MB, free: 4.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/0.2426, allocations: 0.5145 MB / 348.5 MB, free: 4.355 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003417/0.243, allocations: 345.1 kB / 348.8 MB, free: 4.008 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.2431, allocations: 480.8 kB / 349.3 MB, free: 3.535 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.2435, allocations: 275.8 kB / 349.6 MB, free: 3.266 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008409/0.2444, allocations: 1.171 MB / 350.7 MB, free: 1.719 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.2458, allocations: 1.585 MB / 352.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.2458, allocations: 4 kB / 352.3 MB, free: 15.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001914/0.2477, allocations: 1.569 MB / 353.9 MB, free: 14.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.2477, allocations: 12 kB / 353.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/0.2478, allocations: 20 kB / 353.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/0.248, allocations: 99 kB / 354 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009533/0.249, allocations: 467.3 kB / 354.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008772/0.2498, allocations: 1.759 MB / 356.2 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000688/0.2505, allocations: 95.86 kB / 356.3 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.76e-05/0.2506, allocations: 84.11 kB / 356.4 MB, free: 11.52 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 (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.0006577/0.2513, allocations: 276 kB / 356.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/0.2515, allocations: 238.7 kB / 356.9 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.2529, allocations: 1.078 MB / 358 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/0.2529, allocations: 19.94 kB / 358 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2529, allocations: 0 / 358 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.2529, allocations: 7.969 kB / 358 MB, free: 9.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004116/0.257, allocations: 3.374 MB / 361.4 MB, free: 6.441 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.257, allocations: 4 kB / 361.4 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006698/0.2577, allocations: 287.9 kB / 361.7 MB, free: 6.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.2579, allocations: 74.94 kB / 361.8 MB, free: 6.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.219e-05/0.2579, allocations: 35.94 kB / 361.8 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006839/0.2586, allocations: 1.749 MB / 363.5 MB, free: 4.164 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2586, allocations: 0 / 363.5 MB, free: 4.164 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.2604, allocations: 1.566 MB / 365.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004899/0.2609, allocations: 334.6 kB / 365.4 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.2611, allocations: 24 kB / 365.5 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003964/0.2615, allocations: 59.95 kB / 365.5 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.2616, allocations: 101.1 kB / 365.6 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.236e-05/0.2616, allocations: 40 kB / 365.6 MB, free: 1.977 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008938/0.2625, allocations: 0.8517 MB / 366.5 MB, free: 1.133 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2625, allocations: 0 / 366.5 MB, free: 1.133 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00121/0.2637, allocations: 0.5156 MB / 367 MB, free: 0.6172 MB / 314.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.0002759/0.264, allocations: 170.9 kB / 367.2 MB, free: 452 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.2656, allocations: 1.211 MB / 368.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2656, allocations: 0 / 368.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006796/0.2663, allocations: 0.6666 MB / 369.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.2675, allocations: 495.6 kB / 369.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006543/0.2741, allocations: 4.901 MB / 374.4 MB, free: 9.062 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005921/0.2746, allocations: 0.7507 MB / 375.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009097/0.2756, allocations: 424.4 kB / 375.6 MB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/0.2758, allocations: 140.5 kB / 375.7 MB, free: 7.723 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2758, allocations: 0 / 375.7 MB, free: 7.723 MB / 330.7 MB Notification: Performance of Templates: time 0.03368/0.3095, allocations: 24.61 MB / 400.4 MB, free: 15.51 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.292884321883321]