Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001595/0.001595, allocations: 110.4 kB / 21.17 MB, free: 0.7695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 212.8 kB / 24.46 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.449/1.449, allocations: 230.4 MB / 258.1 MB, free: 8.156 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 67.83 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3446, allocations: 53.32 MB / 432.1 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02079/0.3654, allocations: 15.94 MB / 448 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.378, allocations: 5.37 MB / 453.4 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003839/0.3819, allocations: 99.62 kB / 453.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003907/0.3858, allocations: 1.142 MB / 454.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004918/0.3907, allocations: 1.289 MB / 455.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00267/0.3934, allocations: 0.9311 MB / 456.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005542/0.3989, allocations: 3.648 MB / 460.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002895/0.4018, allocations: 1.909 MB / 462.4 MB, free: 8.891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002798/0.4046, allocations: 1.756 MB / 464.1 MB, free: 7.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00364/0.4082, allocations: 2.145 MB / 466.3 MB, free: 4.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000824/0.4091, allocations: 480 kB / 466.8 MB, free: 4.508 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001706/0.4108, allocations: 0.699 MB / 467.5 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001191/0.412, allocations: 1.161 MB / 468.6 MB, free: 2.645 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002632/0.4146, allocations: 2.057 MB / 470.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008468/0.4231, allocations: 6.314 MB / 477 MB, free: 10.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.4231, allocations: 0 / 477 MB, free: 10.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4231, allocations: 0 / 477 MB, free: 10.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002003/0.4233, allocations: 3.938 kB / 477 MB, free: 10.24 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.0127/0.436, allocations: 4.366 MB / 481.4 MB, free: 5.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.436, allocations: 8.031 kB / 481.4 MB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00293/0.439, allocations: 0.6349 MB / 482 MB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005659/0.4446, allocations: 2.305 MB / 484.3 MB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.4449, allocations: 238.7 kB / 484.5 MB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001103/0.446, allocations: 324 kB / 484.9 MB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008151/0.4541, allocations: 4.047 MB / 488.9 MB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.32e-05/0.4542, allocations: 11.95 kB / 488.9 MB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002975/0.4545, allocations: 124 kB / 489 MB, free: 14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001591/0.4547, allocations: 154.2 kB / 489.2 MB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006304/0.461, allocations: 3.39 MB / 492.6 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02432/0.4853, allocations: 13.39 MB / 0.4941 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005316/0.4906, allocations: 4.162 MB / 0.4982 GB, free: 7.859 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/0.4925, allocations: 0.9298 MB / 0.4991 GB, free: 6.934 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005925/0.4984, allocations: 2.867 MB / 0.5019 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/0.4984, allocations: 47.5 kB / 0.5019 GB, free: 3.887 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 3.587e-06/0.4985, allocations: 4 kB / 0.5019 GB, free: 3.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01379/0.5122, allocations: 6.033 MB / 0.5078 GB, free: 13.76 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.5123, allocations: 64.72 kB / 0.5079 GB, free: 13.69 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004672/0.517, allocations: 1.913 MB / 0.5098 GB, free: 11.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001933/0.5172, allocations: 49.7 kB / 0.5098 GB, free: 11.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001503/0.5187, allocations: 1.556 MB / 0.5113 GB, free: 10.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006814/0.5194, allocations: 0.5036 MB / 0.5118 GB, free: 9.598 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007017/0.5201, allocations: 343.4 kB / 0.5121 GB, free: 9.254 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5202, allocations: 305.1 kB / 0.5124 GB, free: 8.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.5216, allocations: 0.7691 MB / 0.5132 GB, free: 8.184 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.5236, allocations: 1.371 MB / 0.5145 GB, free: 6.539 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003657/0.5272, allocations: 2.324 MB / 0.5168 GB, free: 3.949 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-05/0.5273, allocations: 11.88 kB / 0.5168 GB, free: 3.938 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004733/0.532, allocations: 2.482 MB / 0.5192 GB, free: 1.438 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.532, allocations: 16 kB / 0.5192 GB, free: 1.422 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.046e-05/0.5321, allocations: 20 kB / 0.5193 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004044/0.5325, allocations: 126.8 kB / 0.5194 GB, free: 1.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001865/0.5343, allocations: 479.2 kB / 0.5198 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.5357, allocations: 1.406 MB / 0.5212 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.5374, allocations: 115.9 kB / 0.5213 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.5376, allocations: 87.98 kB / 0.5214 GB, free: 15.05 MB / 446.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.002134/0.5397, allocations: 0.9928 MB / 0.5224 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006154/0.5403, allocations: 210.6 kB / 0.5226 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003907/0.5442, allocations: 1.962 MB / 0.5245 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/0.5443, allocations: 16 kB / 0.5245 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.5443, allocations: 4 kB / 0.5245 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.5443, allocations: 7.969 kB / 0.5245 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009956/0.5542, allocations: 4.999 MB / 0.5294 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.5542, allocations: 0 / 0.5294 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/0.5557, allocations: 319.8 kB / 0.5297 GB, free: 6.418 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003567/0.556, allocations: 94.52 kB / 0.5298 GB, free: 6.316 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.5562, allocations: 28 kB / 0.5298 GB, free: 6.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.5575, allocations: 1.386 MB / 0.5312 GB, free: 4.762 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5575, allocations: 0 / 0.5312 GB, free: 4.762 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005206/0.5627, allocations: 3.099 MB / 0.5342 GB, free: 1.602 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/0.564, allocations: 467.6 kB / 0.5346 GB, free: 1.125 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005361/0.5645, allocations: 28 kB / 0.5347 GB, free: 1.098 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.5659, allocations: 79.89 kB / 0.5348 GB, free: 1.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.566, allocations: 93.19 kB / 0.5348 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.861e-05/0.5661, allocations: 36 kB / 0.5349 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.2552/0.8213, allocations: 1.293 MB / 0.5361 GB, free: 99.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8213, allocations: 0 / 0.5361 GB, free: 99.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003227/0.8245, allocations: 0.5322 MB / 0.5367 GB, free: 99.93 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.0003804/0.8249, allocations: 173.5 kB / 0.5368 GB, free: 99.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003557/0.8285, allocations: 2.13 MB / 0.5389 GB, free: 99.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.8285, allocations: 1.062 kB / 0.5389 GB, free: 99.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.8298, allocations: 1.104 MB / 0.54 GB, free: 98.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002591/0.8323, allocations: 0.5297 MB / 0.5405 GB, free: 98.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00925/0.8416, allocations: 5.705 MB / 0.5461 GB, free: 95.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00161/0.8432, allocations: 2.268 MB / 0.5483 GB, free: 94.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001662/0.8449, allocations: 0.5146 MB / 0.5488 GB, free: 94.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004057/0.8453, allocations: 162.2 kB / 0.5489 GB, free: 94.55 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8453, allocations: 0 / 0.5489 GB, free: 94.55 MB / 446.1 MB Notification: Performance of Templates: time 0.04169/0.887, allocations: 27.78 MB / 0.5761 GB, free: 70.97 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.988521433901042]