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.002391/0.002391, allocations: 95.61 kB / 20.96 MB, free: 3.453 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.002734/0.002734, allocations: 161.3 kB / 24.27 MB, free: 148 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 1.587/1.587, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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 2.294e-06/2.294e-06, allocations: 0 / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.056e-05/3.285e-05, allocations: 2.312 kB / 272.3 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.023/0.02303, allocations: 15.48 MB / 287.8 MB, free: 2.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1789/0.2019, allocations: 5.241 MB / 293.1 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00452/0.2065, allocations: 125.2 kB / 293.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004051/0.2105, allocations: 1.088 MB / 294.3 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005814/0.2163, allocations: 1.315 MB / 295.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003331/0.2197, allocations: 0.9169 MB / 296.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006932/0.2266, allocations: 3.799 MB / 300.3 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005878/0.2325, allocations: 1.85 MB / 302.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007349/0.2398, allocations: 2.639 MB / 304.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004809/0.2446, allocations: 1.901 MB / 306.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001402/0.246, allocations: 478 kB / 307.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00257/0.2486, allocations: 0.6898 MB / 307.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001442/0.25, allocations: 1.2 MB / 309.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00282/0.2529, allocations: 1.394 MB / 310.4 MB, free: 8.391 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005736/0.2586, allocations: 6.403 MB / 316.8 MB, free: 3.766 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2586, allocations: 0 / 316.8 MB, free: 3.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2586, allocations: 0 / 316.8 MB, free: 3.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001598/0.2588, allocations: 0 / 316.8 MB, free: 3.766 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.01116/0.2699, allocations: 4.843 MB / 321.7 MB, free: 14.87 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.27, allocations: 12.03 kB / 321.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003783/0.2737, allocations: 0.984 MB / 322.7 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004864/0.2786, allocations: 2.164 MB / 324.9 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002481/0.2789, allocations: 235.7 kB / 325.1 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005566/0.2794, allocations: 320 kB / 325.4 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008545/0.288, allocations: 4.076 MB / 329.5 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.836e-05/0.288, allocations: 0 / 329.5 MB, free: 7.012 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003301/0.2884, allocations: 131.9 kB / 329.6 MB, free: 6.883 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002023/0.2886, allocations: 146.2 kB / 329.7 MB, free: 6.738 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006371/0.2949, allocations: 2.808 MB / 332.5 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03191/0.3268, allocations: 17.49 MB / 350 MB, free: 1.605 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004213/0.3311, allocations: 1.504 MB / 351.5 MB, free: 136 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001677/0.3327, allocations: 0.7555 MB / 352.3 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005524/0.3383, allocations: 2.129 MB / 354.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.351e-05/0.3383, allocations: 54.39 kB / 354.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of pre-optimization done (n=108): time 3.346e-06/0.3383, allocations: 0 / 354.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=142): time 0.01218/0.3505, allocations: 4.67 MB / 359.2 MB, free: 8.477 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.3506, allocations: 64.72 kB / 359.2 MB, free: 8.398 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003571/0.3541, allocations: 2.145 MB / 361.4 MB, free: 6.242 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001145/0.3543, allocations: 45.7 kB / 361.4 MB, free: 6.191 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001796/0.3561, allocations: 1.776 MB / 363.2 MB, free: 4.402 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006614/0.3567, allocations: 0.5495 MB / 363.7 MB, free: 3.859 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007326/0.3575, allocations: 433.1 kB / 364.2 MB, free: 3.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002619/0.3577, allocations: 476.8 kB / 364.6 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/0.3591, allocations: 0.5154 MB / 365.1 MB, free: 2.445 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002112/0.3612, allocations: 1.487 MB / 366.6 MB, free: 0.582 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003555/0.3648, allocations: 2.181 MB / 368.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.701e-05/0.3648, allocations: 4 kB / 368.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004453/0.3693, allocations: 2.088 MB / 370.9 MB, free: 11.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.3693, allocations: 12 kB / 370.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.971e-05/0.3693, allocations: 20 kB / 370.9 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004348/0.3698, allocations: 131.6 kB / 371.1 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/0.3719, allocations: 483.2 kB / 371.5 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/0.3735, allocations: 1.814 MB / 373.3 MB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.375, allocations: 111.9 kB / 373.4 MB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/0.3752, allocations: 79.98 kB / 373.5 MB, free: 9.156 MB / 330.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.001729/0.3769, allocations: 0.8512 MB / 374.4 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004659/0.3774, allocations: 246.7 kB / 374.6 MB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003164/0.3805, allocations: 1.465 MB / 376.1 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.3805, allocations: 16 kB / 376.1 MB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3806, allocations: 3.938 kB / 376.1 MB, free: 6.535 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.3806, allocations: 7.969 kB / 376.1 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009835/0.3904, allocations: 4.688 MB / 380.8 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.3904, allocations: 7.938 kB / 380.8 MB, free: 1.773 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/0.3919, allocations: 303.6 kB / 381.1 MB, free: 1.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003566/0.3922, allocations: 111 kB / 381.2 MB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.643e-05/0.3923, allocations: 24 kB / 381.2 MB, free: 1.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001519/0.3938, allocations: 1.779 MB / 383 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3938, allocations: 3.938 kB / 383 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004563/0.3984, allocations: 2.308 MB / 385.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.3995, allocations: 358.7 kB / 385.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.3997, allocations: 28 kB / 385.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.401, allocations: 79.89 kB / 385.8 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.4012, allocations: 101 kB / 385.9 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.4013, allocations: 39.98 kB / 385.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0021/0.4034, allocations: 1.203 MB / 387.1 MB, free: 11.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4034, allocations: 0 / 387.1 MB, free: 11.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001892/0.4053, allocations: 0.5273 MB / 387.6 MB, free: 10.74 MB / 346.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.0003816/0.4057, allocations: 182.9 kB / 387.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003463/0.4092, allocations: 1.71 MB / 389.5 MB, free: 8.812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4092, allocations: 1.938 kB / 389.5 MB, free: 8.812 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.4108, allocations: 0.8819 MB / 390.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002337/0.4131, allocations: 0.4886 MB / 390.9 MB, free: 7.434 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/0.4246, allocations: 5.266 MB / 396.2 MB, free: 2.074 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002253/0.4269, allocations: 1.612 MB / 397.8 MB, free: 432 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001827/0.4287, allocations: 424.4 kB / 398.2 MB, free: 4 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004949/0.4292, allocations: 148.7 kB / 398.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of SimCode: time 2.164e-06/0.4292, allocations: 0 / 398.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of Templates: time 0.05311/0.4823, allocations: 24.77 MB / 423.1 MB, free: 7.477 MB / 378.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.851273721083999]