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.00183/0.00183, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.002237/0.002237, allocations: 204.2 kB / 24.47 MB, free: 3.699 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.476/1.476, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.001555/0.001555, allocations: 43.92 kB / 379 MB, free: 2.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2759, allocations: 53.35 MB / 432.3 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01789/0.2938, allocations: 13.79 MB / 446.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.3045, allocations: 5.075 MB / 451.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002601/0.3071, allocations: 123.2 kB / 451.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003039/0.3101, allocations: 1.075 MB / 452.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004129/0.3143, allocations: 1.281 MB / 453.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002626/0.3169, allocations: 0.8991 MB / 454.6 MB, free: 452 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005438/0.3223, allocations: 3.649 MB / 458.2 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002974/0.3253, allocations: 1.913 MB / 460.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002815/0.3281, allocations: 1.791 MB / 461.9 MB, free: 9.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003443/0.3315, allocations: 2.16 MB / 464.1 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008228/0.3324, allocations: 476 kB / 464.6 MB, free: 6.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001556/0.3339, allocations: 0.6872 MB / 465.3 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001142/0.3351, allocations: 1.161 MB / 466.4 MB, free: 4.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002009/0.3371, allocations: 1.626 MB / 468 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007382/0.3445, allocations: 6.337 MB / 474.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.3445, allocations: 4 kB / 474.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.3445, allocations: 3.984 kB / 474.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000166/0.3446, allocations: 0 / 474.4 MB, free: 12.52 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.01031/0.355, allocations: 4.283 MB / 478.7 MB, free: 8.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.355, allocations: 8.031 kB / 478.7 MB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002772/0.3578, allocations: 0.6271 MB / 479.3 MB, free: 7.539 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004589/0.3624, allocations: 2.214 MB / 481.5 MB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.3626, allocations: 238.7 kB / 481.7 MB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005452/0.3631, allocations: 316.1 kB / 482.1 MB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007281/0.3704, allocations: 4.122 MB / 486.2 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.847e-05/0.3705, allocations: 15.89 kB / 486.2 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002859/0.3708, allocations: 132 kB / 486.3 MB, free: 400 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001621/0.3709, allocations: 150.2 kB / 486.5 MB, free: 248 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006143/0.3771, allocations: 3.382 MB / 489.9 MB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02121/0.3983, allocations: 11.31 MB / 0.4894 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00367/0.402, allocations: 1.749 MB / 0.4911 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.4037, allocations: 0.9298 MB / 0.492 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005041/0.4087, allocations: 2.152 MB / 0.4941 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.367e-05/0.4088, allocations: 47.56 kB / 0.4942 GB, free: 12.28 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.126e-06/0.4088, allocations: 0 / 0.4942 GB, free: 12.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01264/0.4214, allocations: 5.807 MB / 0.4998 GB, free: 6.441 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.4215, allocations: 64.72 kB / 0.4999 GB, free: 6.367 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002866/0.4243, allocations: 1.76 MB / 0.5016 GB, free: 4.605 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.4245, allocations: 49.7 kB / 0.5017 GB, free: 4.551 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.4259, allocations: 1.571 MB / 0.5032 GB, free: 2.965 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006561/0.4266, allocations: 0.5074 MB / 0.5037 GB, free: 2.453 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005895/0.4272, allocations: 339.4 kB / 0.504 GB, free: 2.113 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.4273, allocations: 301.1 kB / 0.5043 GB, free: 1.816 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.4286, allocations: 0.7691 MB / 0.5051 GB, free: 1.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.4305, allocations: 1.4 MB / 0.5064 GB, free: 15.37 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003284/0.4338, allocations: 2.32 MB / 0.5087 GB, free: 12.78 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/0.4338, allocations: 4 kB / 0.5087 GB, free: 12.78 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004449/0.4382, allocations: 2.479 MB / 0.5111 GB, free: 10.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.4383, allocations: 12 kB / 0.5111 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/0.4383, allocations: 20 kB / 0.5112 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003611/0.4387, allocations: 122.5 kB / 0.5113 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001785/0.4404, allocations: 487.6 kB / 0.5117 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.4419, allocations: 1.279 MB / 0.513 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/0.4444, allocations: 120 kB / 0.5131 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002462/0.4446, allocations: 83.98 kB / 0.5132 GB, free: 8.062 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.003036/0.4477, allocations: 0.985 MB / 0.5141 GB, free: 7.066 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007242/0.4484, allocations: 198.7 kB / 0.5143 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005268/0.4537, allocations: 1.949 MB / 0.5162 GB, free: 4.902 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.4537, allocations: 16 kB / 0.5162 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.4537, allocations: 3.938 kB / 0.5163 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.4537, allocations: 7.969 kB / 0.5163 GB, free: 4.875 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.4658, allocations: 4.227 MB / 0.5204 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.4658, allocations: 3.984 kB / 0.5204 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/0.4679, allocations: 315.8 kB / 0.5207 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004441/0.4684, allocations: 106.4 kB / 0.5208 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/0.4685, allocations: 31.98 kB / 0.5208 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.47, allocations: 1.241 MB / 0.522 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.47, allocations: 7.938 kB / 0.522 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00749/0.4775, allocations: 3.079 MB / 0.5251 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001837/0.4793, allocations: 366.6 kB / 0.5254 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004045/0.4797, allocations: 27.94 kB / 0.5254 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.4811, allocations: 84.06 kB / 0.5255 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/0.4814, allocations: 97.06 kB / 0.5256 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/0.4815, allocations: 40 kB / 0.5256 GB, free: 11.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002926/0.4845, allocations: 1.156 MB / 0.5268 GB, free: 9.879 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4845, allocations: 0 / 0.5268 GB, free: 9.879 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003243/0.4877, allocations: 0.5351 MB / 0.5273 GB, free: 9.344 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.0005054/0.4882, allocations: 171 kB / 0.5275 GB, free: 9.168 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00518/0.4934, allocations: 1.979 MB / 0.5294 GB, free: 7.172 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.4934, allocations: 0 / 0.5294 GB, free: 7.172 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002421/0.4958, allocations: 0.9501 MB / 0.5303 GB, free: 6.203 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/0.4994, allocations: 481.5 kB / 0.5308 GB, free: 5.742 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3117/0.8111, allocations: 5.698 MB / 0.5363 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005098/0.8162, allocations: 1.672 MB / 0.538 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001146/0.8173, allocations: 162.5 kB / 0.5381 GB, free: 100.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.513e-06/0.8173, allocations: 0 / 0.5381 GB, free: 100.8 MB / 446.1 MB Notification: Performance of Templates: time 0.09816/0.9155, allocations: 87.05 MB / 0.6231 GB, free: 21.96 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/jenkins1/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/jenkins1/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: 13.187561768048909]