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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=40000,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=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009427/0.0009428, allocations: 93.95 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001015, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.7 MB / 247.5 MB, free: 11.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.0002619, allocations: 8 kB / 308.4 MB, free: 0.7539 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.114, allocations: 51.53 MB / 359.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2443/0.3583, allocations: 14.85 MB / 374.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01294/0.3713, allocations: 5.196 MB / 380 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004394/0.3757, allocations: 95.38 kB / 380.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004294/0.3801, allocations: 0.942 MB / 381 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005648/0.3857, allocations: 1.101 MB / 382.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003143/0.3889, allocations: 0.8483 MB / 383 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007216/0.3961, allocations: 3.788 MB / 386.8 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005599/0.4018, allocations: 2.753 MB / 389.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003325/0.4051, allocations: 1.238 MB / 390.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004116/0.4093, allocations: 1.643 MB / 392.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00147/0.4108, allocations: 198.1 kB / 392.6 MB, free: 4.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.4139, allocations: 440.5 kB / 393 MB, free: 4.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001795/0.4157, allocations: 0.7997 MB / 393.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004757/0.4205, allocations: 1.691 MB / 395.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007218/0.4277, allocations: 5.114 MB / 400.6 MB, free: 15.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.4277, allocations: 4 kB / 400.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.4277, allocations: 0 / 400.6 MB, free: 15.26 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002948/0.4281, allocations: 1.188 kB / 400.6 MB, free: 15.26 MB / 318.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.01241/0.4405, allocations: 3.609 MB / 404.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.4405, allocations: 9.281 kB / 404.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003979/0.4445, allocations: 0.6231 MB / 404.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005903/0.4504, allocations: 2.212 MB / 407.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003376/0.4508, allocations: 241.9 kB / 407.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001169/0.452, allocations: 315.9 kB / 407.6 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.4636, allocations: 4.044 MB / 411.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001649/0.4638, allocations: 15.84 kB / 411.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008951/0.4647, allocations: 126.3 kB / 411.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/0.4649, allocations: 146.2 kB / 411.9 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008073/0.473, allocations: 3.397 MB / 415.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02812/0.5012, allocations: 13.54 MB / 428.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005367/0.5066, allocations: 4.288 MB / 433.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002055/0.5087, allocations: 1.035 MB / 434.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006211/0.5149, allocations: 2.874 MB / 437.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.515, allocations: 47.5 kB / 437.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 3.436e-06/0.515, allocations: 0 / 437.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01349/0.5285, allocations: 5.994 MB / 443.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.5286, allocations: 68.72 kB / 443.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/0.5321, allocations: 1.902 MB / 445.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.5323, allocations: 49.7 kB / 445.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001433/0.5337, allocations: 1.519 MB / 446.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005629/0.5343, allocations: 492.2 kB / 447.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002501/0.5345, allocations: 149.6 kB / 447.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.5347, allocations: 305.1 kB / 447.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.5361, allocations: 0.7652 MB / 448.3 MB, free: 368 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/0.5379, allocations: 1.383 MB / 449.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003349/0.5413, allocations: 2.32 MB / 452.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/0.5413, allocations: 7.938 kB / 452.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004628/0.5459, allocations: 2.473 MB / 454.5 MB, free: 9.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.546, allocations: 15.62 kB / 454.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.484e-05/0.546, allocations: 20 kB / 454.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004005/0.5464, allocations: 130.5 kB / 454.7 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/0.5482, allocations: 479.2 kB / 455.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.5495, allocations: 1.323 MB / 456.5 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.5515, allocations: 112 kB / 456.6 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/0.5517, allocations: 91.92 kB / 456.7 MB, free: 7.324 MB / 366.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.002223/0.5539, allocations: 0.9773 MB / 457.7 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005331/0.5544, allocations: 205.4 kB / 457.9 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003698/0.5581, allocations: 1.977 MB / 459.8 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.5582, allocations: 12 kB / 459.9 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.5582, allocations: 7.938 kB / 459.9 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/0.5582, allocations: 11.91 kB / 459.9 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009474/0.5677, allocations: 4.991 MB / 464.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.5678, allocations: 0 / 464.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.5691, allocations: 315.5 kB / 465.2 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003123/0.5695, allocations: 102.7 kB / 465.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.733e-05/0.5696, allocations: 28 kB / 465.3 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.5706, allocations: 1.272 MB / 466.6 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.5706, allocations: 3.938 kB / 466.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004847/0.5755, allocations: 3.093 MB / 469.7 MB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001387/0.5769, allocations: 466.4 kB / 470.1 MB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003466/0.5772, allocations: 23.94 kB / 470.1 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.5783, allocations: 87.91 kB / 470.2 MB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.5785, allocations: 93.12 kB / 470.3 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.277e-05/0.5786, allocations: 40.05 kB / 470.4 MB, free: 9.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002325/0.5809, allocations: 1.294 MB / 471.7 MB, free: 8.016 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5809, allocations: 0 / 471.7 MB, free: 8.016 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002257/0.5832, allocations: 0.5468 MB / 472.2 MB, free: 7.469 MB / 382.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.0005096/0.5837, allocations: 174.2 kB / 472.4 MB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003792/0.5875, allocations: 2.215 MB / 474.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5875, allocations: 0 / 474.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.5892, allocations: 1.187 MB / 475.8 MB, free: 3.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003421/0.5926, allocations: 0.4888 MB / 476.3 MB, free: 3.293 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.6052, allocations: 7.133 MB / 483.4 MB, free: 12.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002042/0.6073, allocations: 2.217 MB / 485.6 MB, free: 9.848 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008753/0.6082, allocations: 167.4 kB / 485.8 MB, free: 9.684 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6082, allocations: 4 kB / 485.8 MB, free: 9.68 MB / 398.1 MB Notification: Performance of Templates: time 0.3537/0.962, allocations: 85.85 MB / 0.5582 GB, free: 136.3 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (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) 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.0.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) Reference file matches