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.001263/0.001263, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001239/0.001239, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 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.377/1.377, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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 0.0015/0.0015, allocations: 47.92 kB / 368.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3189, allocations: 52.12 MB / 420.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02081/0.3398, allocations: 15.32 MB / 436.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01227/0.352, allocations: 5.117 MB / 441.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00374/0.3558, allocations: 95.62 kB / 441.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004027/0.3598, allocations: 1.134 MB / 442.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005504/0.3653, allocations: 1.316 MB / 443.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002982/0.3683, allocations: 0.9027 MB / 444.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006972/0.3752, allocations: 3.612 MB / 448.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003772/0.379, allocations: 1.912 MB / 450.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003422/0.3824, allocations: 1.733 MB / 452 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004323/0.3868, allocations: 2.082 MB / 454.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001416/0.3882, allocations: 483.9 kB / 454.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002105/0.3903, allocations: 0.6872 MB / 455.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.3916, allocations: 1.153 MB / 456.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003219/0.3948, allocations: 2.046 MB / 458.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.4059, allocations: 6.283 MB / 464.7 MB, free: 3.012 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.366e-05/0.4059, allocations: 4 kB / 464.7 MB, free: 3.008 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4059, allocations: 0 / 464.7 MB, free: 3.008 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002246/0.4061, allocations: 0 / 464.7 MB, free: 3.008 MB / 366.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.01431/0.4204, allocations: 4.335 MB / 469.1 MB, free: 14.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/0.4205, allocations: 19.95 kB / 469.1 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00303/0.4235, allocations: 0.631 MB / 469.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005152/0.4287, allocations: 2.278 MB / 472 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/0.4289, allocations: 246.5 kB / 472.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000994/0.4299, allocations: 324 kB / 472.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009048/0.439, allocations: 4.039 MB / 476.6 MB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-05/0.4391, allocations: 4 kB / 476.6 MB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003358/0.4394, allocations: 128 kB / 476.7 MB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001686/0.4396, allocations: 146.2 kB / 476.9 MB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007328/0.4469, allocations: 3.39 MB / 480.3 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02229/0.4692, allocations: 13.18 MB / 493.4 MB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004767/0.4739, allocations: 3.872 MB / 497.3 MB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001676/0.4756, allocations: 0.9059 MB / 498.2 MB, free: 380 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005128/0.4807, allocations: 2.654 MB / 0.4891 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/0.4808, allocations: 43.56 kB / 0.4892 GB, free: 13.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 6.091e-06/0.4808, allocations: 3.984 kB / 0.4892 GB, free: 13.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.0125/0.4933, allocations: 6.036 MB / 0.4951 GB, free: 7.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.4933, allocations: 64.72 kB / 0.4951 GB, free: 7.371 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/0.4961, allocations: 1.897 MB / 0.497 GB, free: 5.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.4962, allocations: 49.7 kB / 0.497 GB, free: 5.375 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/0.4974, allocations: 1.544 MB / 0.4985 GB, free: 3.816 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004467/0.4979, allocations: 0.5035 MB / 0.499 GB, free: 3.309 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005304/0.4984, allocations: 339.4 kB / 0.4994 GB, free: 2.969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.4985, allocations: 305.1 kB / 0.4997 GB, free: 2.668 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.4997, allocations: 0.7652 MB / 0.5004 GB, free: 1.902 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.5015, allocations: 1.379 MB / 0.5017 GB, free: 264 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00315/0.5046, allocations: 2.316 MB / 0.504 GB, free: 13.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.5047, allocations: 8 kB / 0.504 GB, free: 13.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004235/0.5089, allocations: 2.486 MB / 0.5064 GB, free: 11.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.5089, allocations: 12 kB / 0.5065 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.983e-05/0.5089, allocations: 20 kB / 0.5065 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003647/0.5093, allocations: 126.4 kB / 0.5066 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.5111, allocations: 483.6 kB / 0.5071 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.5124, allocations: 1.406 MB / 0.5084 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.5141, allocations: 115.8 kB / 0.5085 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/0.5142, allocations: 80 kB / 0.5086 GB, free: 8.789 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.001847/0.5161, allocations: 0.9929 MB / 0.5096 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004794/0.5165, allocations: 210.6 kB / 0.5098 GB, free: 7.578 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003573/0.5201, allocations: 1.958 MB / 0.5117 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.5201, allocations: 16 kB / 0.5117 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5201, allocations: 0 / 0.5117 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.5202, allocations: 7.969 kB / 0.5117 GB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008678/0.5288, allocations: 4.991 MB / 0.5166 GB, free: 488 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.5288, allocations: 0 / 0.5166 GB, free: 488 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.5302, allocations: 307.6 kB / 0.5169 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003118/0.5305, allocations: 98.72 kB / 0.517 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.53e-05/0.5306, allocations: 31.98 kB / 0.517 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.5317, allocations: 1.379 MB / 0.5184 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5317, allocations: 3.984 kB / 0.5184 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004794/0.5365, allocations: 3.091 MB / 0.5214 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/0.5376, allocations: 463.6 kB / 0.5218 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003524/0.538, allocations: 31.98 kB / 0.5219 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009725/0.539, allocations: 87.78 kB / 0.5219 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.5391, allocations: 85.12 kB / 0.522 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.763e-05/0.5392, allocations: 40 kB / 0.5221 GB, free: 10.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002043/0.5413, allocations: 1.285 MB / 0.5233 GB, free: 9.348 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5413, allocations: 4 kB / 0.5233 GB, free: 9.344 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001666/0.5429, allocations: 0.5351 MB / 0.5238 GB, free: 8.809 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.0003329/0.5433, allocations: 166.9 kB / 0.524 GB, free: 8.633 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003495/0.5468, allocations: 2.119 MB / 0.5261 GB, free: 6.461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5468, allocations: 8.062 kB / 0.5261 GB, free: 6.453 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.5484, allocations: 1.099 MB / 0.5271 GB, free: 5.301 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/0.5507, allocations: 0.5114 MB / 0.5276 GB, free: 4.793 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.561, allocations: 5.712 MB / 0.5332 GB, free: 15.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002198/0.5632, allocations: 2.263 MB / 0.5354 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001925/0.5651, allocations: 0.5092 MB / 0.5359 GB, free: 12.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005462/0.5656, allocations: 155.4 kB / 0.5361 GB, free: 12.05 MB / 462.1 MB Notification: Performance of SimCode: time 1.793e-06/0.5656, allocations: 0 / 0.5361 GB, free: 12.05 MB / 462.1 MB Notification: Performance of Templates: time 0.2604/0.8261, allocations: 27.44 MB / 0.5629 GB, free: 116.4 MB / 462.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.701084385626018]