Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001951/0.001951, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002342/0.002342, allocations: 209.9 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 230.5 MB / 258.1 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 60.09 kB / 379 MB, free: 2.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2639, allocations: 53.42 MB / 432.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01774/0.2817, allocations: 13.78 MB / 446.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.2933, allocations: 5.069 MB / 451.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00246/0.2958, allocations: 127.2 kB / 451.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00301/0.2988, allocations: 1.068 MB / 452.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004195/0.303, allocations: 1.278 MB / 453.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.3052, allocations: 0.9106 MB / 454.6 MB, free: 216 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005046/0.3103, allocations: 3.649 MB / 458.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002743/0.313, allocations: 1.835 MB / 460.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002663/0.3157, allocations: 1.791 MB / 461.9 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003429/0.3191, allocations: 2.004 MB / 463.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.3201, allocations: 476 kB / 464.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001658/0.3218, allocations: 0.6872 MB / 465.1 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0011/0.3229, allocations: 1.157 MB / 466.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002206/0.3251, allocations: 1.63 MB / 467.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007423/0.3325, allocations: 6.336 MB / 474.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.3325, allocations: 4 kB / 474.2 MB, free: 12.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3325, allocations: 3.938 kB / 474.2 MB, free: 12.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001749/0.3327, allocations: 0 / 474.2 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.01138/0.3441, allocations: 4.275 MB / 478.5 MB, free: 8.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.3441, allocations: 15.98 kB / 478.5 MB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002913/0.347, allocations: 0.6349 MB / 479.1 MB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004914/0.3519, allocations: 2.206 MB / 481.3 MB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.3522, allocations: 242.7 kB / 481.6 MB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007001/0.3529, allocations: 316.1 kB / 481.9 MB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007435/0.3603, allocations: 4.126 MB / 486 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.651e-05/0.3604, allocations: 7.891 kB / 486 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002788/0.3607, allocations: 132 kB / 486.2 MB, free: 404 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001693/0.3608, allocations: 146.2 kB / 486.3 MB, free: 256 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006058/0.3669, allocations: 3.386 MB / 489.7 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0201/0.387, allocations: 11.3 MB / 0.4892 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00351/0.3905, allocations: 1.757 MB / 0.491 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.3921, allocations: 0.9298 MB / 0.4919 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004509/0.3966, allocations: 2.141 MB / 0.494 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.3966, allocations: 51.44 kB / 0.494 GB, free: 12.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 4.047e-06/0.3966, allocations: 0 / 0.494 GB, free: 12.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01285/0.4095, allocations: 5.814 MB / 0.4997 GB, free: 6.438 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.4096, allocations: 64.72 kB / 0.4997 GB, free: 6.363 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002812/0.4124, allocations: 1.752 MB / 0.5015 GB, free: 4.609 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.4125, allocations: 49.7 kB / 0.5015 GB, free: 4.555 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.4138, allocations: 1.571 MB / 0.503 GB, free: 2.969 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004784/0.4143, allocations: 0.5035 MB / 0.5035 GB, free: 2.461 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005546/0.4149, allocations: 339.4 kB / 0.5039 GB, free: 2.121 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.415, allocations: 305.1 kB / 0.5041 GB, free: 1.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.4162, allocations: 0.773 MB / 0.5049 GB, free: 1.047 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.4181, allocations: 1.404 MB / 0.5063 GB, free: 15.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/0.4214, allocations: 2.312 MB / 0.5085 GB, free: 12.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/0.4214, allocations: 4 kB / 0.5085 GB, free: 12.78 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004388/0.4258, allocations: 2.471 MB / 0.5109 GB, free: 10.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.4258, allocations: 12 kB / 0.511 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/0.4258, allocations: 24.09 kB / 0.511 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003793/0.4262, allocations: 122.5 kB / 0.5111 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.428, allocations: 483.2 kB / 0.5116 GB, free: 9.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.4293, allocations: 1.283 MB / 0.5128 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.4308, allocations: 123.8 kB / 0.5129 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.4309, allocations: 76 kB / 0.513 GB, free: 8.074 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.001843/0.4328, allocations: 0.9892 MB / 0.514 GB, free: 7.074 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/0.4331, allocations: 206.6 kB / 0.5142 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003317/0.4364, allocations: 1.949 MB / 0.5161 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.4364, allocations: 12 kB / 0.5161 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.4364, allocations: 3.938 kB / 0.5161 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/0.4365, allocations: 11.97 kB / 0.5161 GB, free: 4.879 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007478/0.4439, allocations: 4.227 MB / 0.5202 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4439, allocations: 0 / 0.5202 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.4453, allocations: 311.6 kB / 0.5205 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003096/0.4456, allocations: 106.6 kB / 0.5206 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-05/0.4457, allocations: 28 kB / 0.5206 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.4467, allocations: 1.248 MB / 0.5219 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4467, allocations: 3.984 kB / 0.5219 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004722/0.4515, allocations: 3.079 MB / 0.5249 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.4526, allocations: 374.6 kB / 0.5252 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.4528, allocations: 27.92 kB / 0.5253 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008994/0.4537, allocations: 79.91 kB / 0.5253 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/0.4539, allocations: 93.08 kB / 0.5254 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.481e-05/0.454, allocations: 43.98 kB / 0.5255 GB, free: 11.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001761/0.4557, allocations: 1.16 MB / 0.5266 GB, free: 9.879 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4557, allocations: 64 / 0.5266 GB, free: 9.879 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001677/0.4574, allocations: 0.5351 MB / 0.5271 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.0003267/0.4577, allocations: 173.9 kB / 0.5273 GB, free: 9.168 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003387/0.4611, allocations: 1.976 MB / 0.5292 GB, free: 7.176 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.4611, allocations: 0 / 0.5292 GB, free: 7.176 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.4627, allocations: 0.9528 MB / 0.5301 GB, free: 6.207 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.4649, allocations: 475 kB / 0.5306 GB, free: 5.754 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2173/0.6822, allocations: 5.704 MB / 0.5362 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003328/0.6855, allocations: 1.671 MB / 0.5378 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007825/0.6863, allocations: 164.4 kB / 0.538 GB, free: 100.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.223e-06/0.6863, allocations: 0 / 0.538 GB, free: 100.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07547/0.7618, allocations: 87.05 MB / 0.623 GB, free: 21.75 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 12.633929073810577]