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.001652/0.001652, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.002232/0.002232, allocations: 205.9 kB / 23.73 MB, free: 4.379 MB / 14.72 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.44/1.44, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 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 0.001603/0.001603, allocations: 51.92 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2867, allocations: 53.36 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02077/0.3075, allocations: 13.78 MB / 445.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01354/0.321, allocations: 5.081 MB / 450.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004819/0.3259, allocations: 123.2 kB / 450.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005207/0.3311, allocations: 1.068 MB / 451.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006457/0.3375, allocations: 1.274 MB / 452.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003974/0.3415, allocations: 0.9108 MB / 453.8 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007553/0.3491, allocations: 3.653 MB / 457.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004515/0.3536, allocations: 1.909 MB / 459.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003548/0.3571, allocations: 1.799 MB / 461.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00447/0.3616, allocations: 2.152 MB / 463.4 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001538/0.3631, allocations: 476 kB / 463.8 MB, free: 6.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00267/0.3658, allocations: 0.6872 MB / 464.5 MB, free: 5.633 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002139/0.3679, allocations: 1.153 MB / 465.7 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004811/0.3727, allocations: 1.637 MB / 467.3 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.3839, allocations: 6.344 MB / 473.6 MB, free: 12.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.3839, allocations: 4 kB / 473.6 MB, free: 12.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3839, allocations: 0 / 473.6 MB, free: 12.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002807/0.3842, allocations: 0 / 473.6 MB, free: 12.46 MB / 382.1 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.0156/0.3998, allocations: 4.283 MB / 477.9 MB, free: 8.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.3998, allocations: 8.031 kB / 477.9 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004212/0.404, allocations: 0.6232 MB / 478.6 MB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008081/0.4121, allocations: 2.214 MB / 480.8 MB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003715/0.4125, allocations: 238.7 kB / 481 MB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001585/0.4141, allocations: 316.1 kB / 481.3 MB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/0.4269, allocations: 4.122 MB / 485.4 MB, free: 496 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001418/0.427, allocations: 7.953 kB / 485.4 MB, free: 488 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007364/0.4277, allocations: 132 kB / 485.6 MB, free: 356 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/0.4279, allocations: 150.2 kB / 485.7 MB, free: 204 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008653/0.4366, allocations: 3.386 MB / 489.1 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02725/0.4638, allocations: 11.31 MB / 0.4887 GB, free: 1.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00394/0.4678, allocations: 1.741 MB / 0.4904 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001831/0.4696, allocations: 0.9337 MB / 0.4913 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005652/0.4753, allocations: 2.144 MB / 0.4934 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.674e-05/0.4753, allocations: 47.56 kB / 0.4934 GB, free: 12.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.537e-06/0.4753, allocations: 4 kB / 0.4934 GB, free: 12.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01415/0.4895, allocations: 5.802 MB / 0.4991 GB, free: 6.402 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/0.4895, allocations: 68.72 kB / 0.4992 GB, free: 6.324 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003429/0.493, allocations: 1.748 MB / 0.5009 GB, free: 4.574 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.4931, allocations: 53.7 kB / 0.5009 GB, free: 4.516 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001376/0.4945, allocations: 1.571 MB / 0.5025 GB, free: 2.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005355/0.495, allocations: 0.5074 MB / 0.503 GB, free: 2.418 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006421/0.4957, allocations: 339.4 kB / 0.5033 GB, free: 2.078 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4958, allocations: 305.1 kB / 0.5036 GB, free: 1.777 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001472/0.4973, allocations: 0.7691 MB / 0.5043 GB, free: 1.008 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.4993, allocations: 1.404 MB / 0.5057 GB, free: 15.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003572/0.5029, allocations: 2.32 MB / 0.508 GB, free: 12.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.079e-05/0.5029, allocations: 4 kB / 0.508 GB, free: 12.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004804/0.5077, allocations: 2.478 MB / 0.5104 GB, free: 10.24 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.592e-05/0.5078, allocations: 12 kB / 0.5104 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.674e-05/0.5078, allocations: 20 kB / 0.5104 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004348/0.5082, allocations: 115.2 kB / 0.5105 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001946/0.5102, allocations: 495.2 kB / 0.511 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.5115, allocations: 1.28 MB / 0.5122 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.5132, allocations: 119.8 kB / 0.5124 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/0.5134, allocations: 87.92 kB / 0.5124 GB, free: 8.016 MB / 430.1 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.5155, allocations: 0.9812 MB / 0.5134 GB, free: 7.023 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006456/0.5161, allocations: 198.7 kB / 0.5136 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004234/0.5203, allocations: 1.945 MB / 0.5155 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/0.5204, allocations: 20 kB / 0.5155 GB, free: 4.844 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.5204, allocations: 3.938 kB / 0.5155 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.5204, allocations: 7.969 kB / 0.5155 GB, free: 4.832 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.5305, allocations: 4.231 MB / 0.5197 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.5305, allocations: 4 kB / 0.5197 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/0.5321, allocations: 307.5 kB / 0.52 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003558/0.5324, allocations: 98.45 kB / 0.52 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/0.5325, allocations: 32.12 kB / 0.5201 GB, free: 84 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.5337, allocations: 1.252 MB / 0.5213 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.5337, allocations: 4 kB / 0.5213 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005194/0.5389, allocations: 3.083 MB / 0.5243 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/0.5406, allocations: 374.8 kB / 0.5247 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005776/0.5411, allocations: 27.94 kB / 0.5247 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.5424, allocations: 79.91 kB / 0.5248 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.5426, allocations: 93.06 kB / 0.5249 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.5427, allocations: 40 kB / 0.5249 GB, free: 10.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002567/0.5453, allocations: 1.16 MB / 0.526 GB, free: 9.832 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5453, allocations: 0 / 0.526 GB, free: 9.832 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002382/0.5477, allocations: 0.5312 MB / 0.5266 GB, free: 9.301 MB / 446.1 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.0004004/0.5481, allocations: 175 kB / 0.5267 GB, free: 9.121 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00398/0.5521, allocations: 1.972 MB / 0.5286 GB, free: 7.133 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.5521, allocations: 4 kB / 0.5286 GB, free: 7.129 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.5538, allocations: 0.9493 MB / 0.5296 GB, free: 6.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.5565, allocations: 480.4 kB / 0.53 GB, free: 5.699 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2402/0.7967, allocations: 5.67 MB / 0.5356 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004137/0.8009, allocations: 1.713 MB / 0.5372 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002024/0.8029, allocations: 0.4922 MB / 0.5377 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005241/0.8034, allocations: 147.7 kB / 0.5379 GB, free: 100.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/0.8034, allocations: 4.531 kB / 0.5379 GB, free: 100.6 MB / 446.1 MB Notification: Performance of Templates: time 0.0479/0.8513, allocations: 29.24 MB / 0.5664 GB, free: 79.3 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] 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.841433071997017]