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.001516/0.001516, allocations: 110.4 kB / 19.17 MB, free: 3.914 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.002006/0.002006, allocations: 205 kB / 22.12 MB, free: 0.9688 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.513/1.513, allocations: 230.2 MB / 255.1 MB, free: 15.24 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.001839/0.001839, allocations: 63.89 kB / 374.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1188, allocations: 53.32 MB / 427.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2381/0.3568, allocations: 15.88 MB / 443.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.3705, allocations: 5.361 MB / 449.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004891/0.3754, allocations: 100.8 kB / 449.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00443/0.3798, allocations: 1.145 MB / 450.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006219/0.3861, allocations: 1.282 MB / 451.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004175/0.3902, allocations: 0.9284 MB / 452.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007248/0.3975, allocations: 3.642 MB / 456.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004006/0.4015, allocations: 2.379 MB / 458.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003709/0.4052, allocations: 1.739 MB / 460.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004623/0.4098, allocations: 2.153 MB / 462.5 MB, free: 7.961 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001295/0.4111, allocations: 479.6 kB / 462.9 MB, free: 7.961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002438/0.4136, allocations: 0.7055 MB / 463.6 MB, free: 7.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001392/0.4149, allocations: 1.152 MB / 464.8 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004118/0.4191, allocations: 2.055 MB / 466.8 MB, free: 5.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00975/0.4288, allocations: 6.32 MB / 473.2 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.4288, allocations: 1.469 kB / 473.2 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4288, allocations: 0 / 473.2 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002148/0.429, allocations: 0 / 473.2 MB, free: 0.9883 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.01345/0.4425, allocations: 4.366 MB / 477.5 MB, free: 13.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.4425, allocations: 9.406 kB / 477.5 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003274/0.4458, allocations: 0.6391 MB / 478.2 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005921/0.4517, allocations: 2.299 MB / 480.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000253/0.452, allocations: 243 kB / 480.7 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008648/0.4528, allocations: 310.7 kB / 481 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008374/0.4612, allocations: 4.051 MB / 485.1 MB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.078e-05/0.4613, allocations: 7.891 kB / 485.1 MB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003041/0.4616, allocations: 136 kB / 485.2 MB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.4618, allocations: 143.8 kB / 485.3 MB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006679/0.4684, allocations: 3.393 MB / 488.7 MB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02584/0.4943, allocations: 13.38 MB / 0.4903 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004687/0.499, allocations: 4.172 MB / 0.4944 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001701/0.5007, allocations: 0.9299 MB / 0.4953 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005868/0.5065, allocations: 2.866 MB / 0.4981 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.5066, allocations: 43.56 kB / 0.4982 GB, free: 13.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.826e-06/0.5066, allocations: 0 / 0.4982 GB, free: 13.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01264/0.5192, allocations: 6.046 MB / 0.5041 GB, free: 7.133 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.5193, allocations: 64.72 kB / 0.5041 GB, free: 7.055 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003815/0.5231, allocations: 1.909 MB / 0.506 GB, free: 5.102 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001885/0.5233, allocations: 61.64 kB / 0.5061 GB, free: 5.035 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.5245, allocations: 1.556 MB / 0.5076 GB, free: 3.465 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005164/0.5251, allocations: 0.5035 MB / 0.5081 GB, free: 2.957 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005673/0.5256, allocations: 335.4 kB / 0.5084 GB, free: 2.621 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5258, allocations: 305.1 kB / 0.5087 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.5271, allocations: 0.7691 MB / 0.5094 GB, free: 1.551 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.5289, allocations: 1.375 MB / 0.5108 GB, free: 15.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/0.5322, allocations: 2.316 MB / 0.513 GB, free: 13.33 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.917e-05/0.5323, allocations: 12 kB / 0.513 GB, free: 13.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00481/0.5371, allocations: 2.487 MB / 0.5155 GB, free: 10.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.5371, allocations: 12 kB / 0.5155 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.512e-05/0.5371, allocations: 20 kB / 0.5155 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004349/0.5376, allocations: 126.5 kB / 0.5156 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.5394, allocations: 479.2 kB / 0.5161 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.5408, allocations: 1.412 MB / 0.5175 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001938/0.5427, allocations: 115.8 kB / 0.5176 GB, free: 8.516 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/0.5429, allocations: 79.98 kB / 0.5176 GB, free: 8.438 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.001976/0.5449, allocations: 0.985 MB / 0.5186 GB, free: 7.441 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005155/0.5454, allocations: 222.6 kB / 0.5188 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003454/0.5489, allocations: 1.959 MB / 0.5207 GB, free: 5.246 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.5489, allocations: 12 kB / 0.5207 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5489, allocations: 7.938 kB / 0.5208 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/0.5489, allocations: 7.969 kB / 0.5208 GB, free: 5.219 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008814/0.5577, allocations: 4.999 MB / 0.5256 GB, free: 112 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5577, allocations: 4.031 kB / 0.5256 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.5591, allocations: 307.6 kB / 0.5259 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003009/0.5594, allocations: 96.86 kB / 0.526 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.36e-05/0.5594, allocations: 35.98 kB / 0.5261 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.5606, allocations: 1.38 MB / 0.5274 GB, free: 14.15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.5606, allocations: 4 kB / 0.5274 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004895/0.5655, allocations: 3.099 MB / 0.5304 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001485/0.567, allocations: 463.5 kB / 0.5309 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002849/0.5672, allocations: 28 kB / 0.5309 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009865/0.5682, allocations: 79.97 kB / 0.531 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.5684, allocations: 90 kB / 0.5311 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/0.5685, allocations: 39.98 kB / 0.5311 GB, free: 10.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002225/0.5707, allocations: 1.297 MB / 0.5324 GB, free: 8.965 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5707, allocations: 0 / 0.5324 GB, free: 8.965 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002048/0.5728, allocations: 0.5351 MB / 0.5329 GB, free: 8.43 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.000393/0.5732, allocations: 172 kB / 0.5331 GB, free: 8.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003651/0.5768, allocations: 2.129 MB / 0.5351 GB, free: 6.066 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.5768, allocations: 1 kB / 0.5352 GB, free: 6.066 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/0.5784, allocations: 1.107 MB / 0.5362 GB, free: 4.906 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/0.5811, allocations: 0.5356 MB / 0.5368 GB, free: 4.379 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.5919, allocations: 5.698 MB / 0.5423 GB, free: 14.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002111/0.594, allocations: 2.221 MB / 0.5445 GB, free: 12.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000821/0.5948, allocations: 171.4 kB / 0.5447 GB, free: 12.18 MB / 462.1 MB Notification: Performance of SimCode: time 1.393e-06/0.5948, allocations: 0 / 0.5447 GB, free: 12.18 MB / 462.1 MB Notification: Performance of Templates: time 0.3479/0.9427, allocations: 87.06 MB / 0.6297 GB, free: 168.1 MB / 0.5137 GB " [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: 13.117693763924763]