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.0009169/0.0009169, allocations: 94.36 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009552/0.0009552, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.2 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002217, allocations: 4 kB / 306.6 MB, free: 1.395 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1045, allocations: 51.5 MB / 358.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01336/0.1179, allocations: 12.76 MB / 370.8 MB, free: 1.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.216/0.334, allocations: 5.035 MB / 375.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003012/0.337, allocations: 88.84 kB / 376 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003474/0.3405, allocations: 0.9417 MB / 376.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006029/0.3466, allocations: 1.357 MB / 378.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002894/0.3495, allocations: 0.7085 MB / 379 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006219/0.3557, allocations: 2.549 MB / 381.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003738/0.3595, allocations: 2.326 MB / 383.8 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002955/0.3625, allocations: 1.166 MB / 385 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003265/0.3658, allocations: 1.452 MB / 386.5 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006412/0.3664, allocations: 186.6 kB / 386.6 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.3685, allocations: 387.5 kB / 387 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009075/0.3695, allocations: 0.7578 MB / 387.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001349/0.3708, allocations: 0.6996 MB / 388.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005544/0.3764, allocations: 5.052 MB / 393.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3764, allocations: 0 / 393.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3764, allocations: 0 / 393.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001849/0.3766, allocations: 1.156 kB / 393.5 MB, free: 4.512 MB / 302.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.01109/0.3877, allocations: 3.63 MB / 397.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.3877, allocations: 15.19 kB / 397.2 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003807/0.3915, allocations: 0.6287 MB / 397.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005064/0.3966, allocations: 2.168 MB / 400 MB, free: 256 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.3969, allocations: 242.1 kB / 400.2 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006287/0.3975, allocations: 307.4 kB / 400.5 MB, free: 40 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007667/0.4052, allocations: 4.003 MB / 404.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.79e-05/0.4053, allocations: 2.656 kB / 404.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003115/0.4056, allocations: 127.7 kB / 404.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/0.4058, allocations: 155.2 kB / 404.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005999/0.4118, allocations: 3.366 MB / 408.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02033/0.4321, allocations: 13.47 MB / 421.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004122/0.4363, allocations: 4.269 MB / 425.9 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004973/0.4413, allocations: 2.854 MB / 428.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.4413, allocations: 43.56 kB / 428.8 MB, free: 4.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 2.695e-06/0.4413, allocations: 0 / 428.8 MB, free: 4.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01236/0.4537, allocations: 6.062 MB / 434.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.579e-05/0.4538, allocations: 72.72 kB / 434.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003862/0.4577, allocations: 1.815 MB / 436.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001762/0.4579, allocations: 49.7 kB / 436.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001377/0.4593, allocations: 1.513 MB / 438.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005349/0.4598, allocations: 0.4968 MB / 438.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.913e-05/0.4599, allocations: 36 kB / 438.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.4601, allocations: 373.9 kB / 439.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.4613, allocations: 0.7847 MB / 440 MB, free: 8.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.4628, allocations: 1.367 MB / 441.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.4643, allocations: 1.029 MB / 442.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.4643, allocations: 4 kB / 442.4 MB, free: 6.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.003895/0.4683, allocations: 2.489 MB / 444.9 MB, free: 3.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.4683, allocations: 19.98 kB / 444.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.4683, allocations: 16 kB / 444.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000359/0.4687, allocations: 118.9 kB / 445 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001736/0.4704, allocations: 495.1 kB / 445.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009827/0.4714, allocations: 1.323 MB / 446.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.4731, allocations: 107.8 kB / 446.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.4733, allocations: 92.17 kB / 447 MB, free: 1.465 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (236): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002021/0.4753, allocations: 0.9851 MB / 448 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004108/0.4757, allocations: 201.5 kB / 448.2 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00325/0.479, allocations: 2.008 MB / 450.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.479, allocations: 12 kB / 450.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.479, allocations: 8 kB / 450.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.479, allocations: 10.16 kB / 450.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007935/0.487, allocations: 5.036 MB / 455.3 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/0.487, allocations: 4.031 kB / 455.3 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.4883, allocations: 319.6 kB / 455.6 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000288/0.4886, allocations: 98.45 kB / 455.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.324e-05/0.4887, allocations: 32 kB / 455.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008547/0.4896, allocations: 1.276 MB / 457 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.4896, allocations: 12.2 kB / 457 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004367/0.494, allocations: 3.264 MB / 460.3 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.4952, allocations: 458.4 kB / 460.7 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/0.4954, allocations: 28 kB / 460.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009169/0.4963, allocations: 83.97 kB / 460.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.4965, allocations: 93.14 kB / 460.9 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-05/0.4966, allocations: 39.98 kB / 461 MB, free: 3.102 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001852/0.4985, allocations: 1.223 MB / 462.2 MB, free: 1.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4985, allocations: 0 / 462.2 MB, free: 1.855 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001889/0.5004, allocations: 0.5429 MB / 462.7 MB, free: 1.312 MB / 366.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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003767/0.5008, allocations: 183 kB / 462.9 MB, free: 1.125 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003247/0.504, allocations: 2.232 MB / 465.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.504, allocations: 4.875 kB / 465.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.5056, allocations: 1.203 MB / 466.4 MB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.508, allocations: 488.2 kB / 466.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009884/0.5179, allocations: 6.743 MB / 473.6 MB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/0.5198, allocations: 2.338 MB / 475.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001971/0.5218, allocations: 0.5132 MB / 476.4 MB, free: 3.418 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.5222, allocations: 153.8 kB / 476.6 MB, free: 3.27 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5222, allocations: 0 / 476.6 MB, free: 3.27 MB / 382.1 MB Notification: Performance of Templates: time 0.04211/0.5643, allocations: 23.92 MB / 0.4888 GB, free: 11.59 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches