Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001531, allocations: 194 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 226.6 MB / 244.3 MB, free: 8.285 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008616/0.0008616, allocations: 98.72 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000246/0.0002461, allocations: 8 kB / 356.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2971, allocations: 51.28 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03211/0.3293, allocations: 34.98 MB / 442.5 MB, free: 8.719 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02983/0.3593, allocations: 9.863 MB / 452.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009822/0.3691, allocations: 279.1 kB / 452.6 MB, free: 14.57 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006177/0.3753, allocations: 1.658 MB / 454.3 MB, free: 12.9 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01205/0.3874, allocations: 2.802 MB / 457.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00616/0.3936, allocations: 1.541 MB / 458.6 MB, free: 8.559 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02061/0.4142, allocations: 13.84 MB / 472.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0427/0.4569, allocations: 19.91 MB / 492.4 MB, free: 6.676 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01303/0.47, allocations: 4.8 MB / 497.2 MB, free: 1.859 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0144/0.4845, allocations: 5.673 MB / 0.4911 GB, free: 12.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005598/0.4901, allocations: 0.7617 MB / 0.4918 GB, free: 11.4 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008374/0.4986, allocations: 1.136 MB / 0.4929 GB, free: 10.26 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005639/0.5043, allocations: 2.456 MB / 0.4953 GB, free: 7.797 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007484/0.5118, allocations: 2.515 MB / 0.4978 GB, free: 5.27 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.5503/1.062, allocations: 21.7 MB / 0.519 GB, free: 24.59 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 1.465e-05/1.062, allocations: 11.33 kB / 0.519 GB, free: 24.59 MB / 378.8 MB Notification: Performance of FrontEnd: time 3.627e-06/1.062, allocations: 0 / 0.519 GB, free: 24.59 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.001423/1.064, allocations: 0 / 0.519 GB, free: 24.59 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04976/1.113, allocations: 12.57 MB / 0.5313 GB, free: 18.31 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/1.114, allocations: 17.23 kB / 0.5313 GB, free: 18.3 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03574/1.149, allocations: 6.143 MB / 0.5373 GB, free: 15.89 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02648/1.176, allocations: 7.697 MB / 0.5448 GB, free: 13.82 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001399/1.177, allocations: 0.9126 MB / 0.5457 GB, free: 13.79 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008159/1.186, allocations: 1.198 MB / 0.5469 GB, free: 13.78 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06955/1.255, allocations: 18.57 MB / 0.565 GB, free: 4.625 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006881/1.256, allocations: 22.86 kB / 0.565 GB, free: 4.605 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00601/1.262, allocations: 0.4948 MB / 0.5655 GB, free: 4.504 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007842/1.263, allocations: 0.6398 MB / 0.5661 GB, free: 3.898 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04919/1.312, allocations: 16.66 MB / 0.5824 GB, free: 7.051 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1484/1.46, allocations: 59.71 MB / 0.6407 GB, free: 10.82 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03225/1.493, allocations: 33.16 MB / 0.6731 GB, free: 5.762 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008721/1.501, allocations: 3.761 MB / 0.6768 GB, free: 1.992 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3206/1.822, allocations: 8.888 MB / 0.6854 GB, free: 169.8 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.523e-05/1.822, allocations: 77 kB / 0.6855 GB, free: 169.7 MB / 490.8 MB Notification: Performance of pre-optimization done (n=349): time 6.612e-06/1.822, allocations: 0.9688 kB / 0.6855 GB, free: 169.7 MB / 490.8 MB Notification: Performance of matching and sorting (n=389): time 0.04652/1.869, allocations: 18.45 MB / 0.7035 GB, free: 162.3 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/1.869, allocations: 93.09 kB / 0.7036 GB, free: 162.2 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00896/1.878, allocations: 4.989 MB / 0.7085 GB, free: 160.4 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001122/1.879, allocations: 89.11 kB / 0.7086 GB, free: 160.3 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003875/1.883, allocations: 5.449 MB / 0.7139 GB, free: 156.2 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00225/1.885, allocations: 1.353 MB / 0.7152 GB, free: 155.1 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005465/1.886, allocations: 134.9 kB / 0.7153 GB, free: 155 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004374/1.886, allocations: 0.5728 MB / 0.7159 GB, free: 154.6 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004674/1.891, allocations: 2.887 MB / 0.7187 GB, free: 152.6 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006258/1.897, allocations: 5.847 MB / 0.7244 GB, free: 145.9 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007306/1.905, allocations: 4.202 MB / 0.7285 GB, free: 142.1 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/1.905, allocations: 31.95 kB / 0.7286 GB, free: 142.1 MB / 490.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02273/1.927, allocations: 9.788 MB / 0.7381 GB, free: 133.4 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/1.928, allocations: 52.03 kB / 0.7382 GB, free: 133.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000209/1.928, allocations: 100 kB / 0.7383 GB, free: 133.3 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002699/1.931, allocations: 0.9458 MB / 0.7392 GB, free: 132.3 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006568/1.937, allocations: 1.583 MB / 0.7407 GB, free: 130.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/1.949, allocations: 9.483 MB / 0.75 GB, free: 120.9 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008334/1.957, allocations: 403.3 kB / 0.7504 GB, free: 120.5 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002154/1.96, allocations: 352 kB / 0.7507 GB, free: 120.1 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01379/1.973, allocations: 4.25 MB / 0.7549 GB, free: 115.8 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002663/1.976, allocations: 0.5169 MB / 0.7554 GB, free: 115.3 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01624/1.992, allocations: 6.489 MB / 0.7617 GB, free: 108.8 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.925e-05/1.992, allocations: 36 kB / 0.7618 GB, free: 108.8 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-05/1.992, allocations: 17.59 kB / 0.7618 GB, free: 108.7 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.531e-05/1.993, allocations: 19.92 kB / 0.7618 GB, free: 108.7 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04146/2.034, allocations: 15.69 MB / 0.7771 GB, free: 93 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.32e-05/2.034, allocations: 0 / 0.7771 GB, free: 93 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003687/2.038, allocations: 0.7493 MB / 0.7778 GB, free: 92.25 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002428/2.04, allocations: 0.7884 MB / 0.7786 GB, free: 91.44 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007817/2.041, allocations: 83.97 kB / 0.7787 GB, free: 91.36 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009629/2.051, allocations: 8.656 MB / 0.7871 GB, free: 82.29 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/2.051, allocations: 7.984 kB / 0.7872 GB, free: 82.29 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/2.068, allocations: 9.461 MB / 0.7964 GB, free: 72.72 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004031/2.072, allocations: 1.072 MB / 0.7974 GB, free: 71.62 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001869/2.074, allocations: 72 kB / 0.7975 GB, free: 71.55 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003392/2.078, allocations: 223.8 kB / 0.7977 GB, free: 71.33 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006758/2.078, allocations: 262.8 kB / 0.798 GB, free: 71.07 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004216/2.079, allocations: 116 kB / 0.7981 GB, free: 70.96 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007152/2.086, allocations: 3.312 MB / 0.8013 GB, free: 67.66 MB / 490.8 MB Notification: Performance of sort global known variables: time 5.01e-07/2.086, allocations: 0 / 0.8013 GB, free: 67.66 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.009061/2.095, allocations: 1.885 MB / 0.8032 GB, free: 65.78 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * 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: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009347/2.096, allocations: 271.9 kB / 0.8034 GB, free: 65.52 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01163/2.108, allocations: 7.6 MB / 0.8108 GB, free: 57.84 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/2.108, allocations: 4 kB / 0.8108 GB, free: 57.84 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005084/2.113, allocations: 3.551 MB / 0.8143 GB, free: 54.21 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007842/2.121, allocations: 1.251 MB / 0.8155 GB, free: 52.98 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04142/2.162, allocations: 23.65 MB / 0.8386 GB, free: 29.27 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01394/2.176, allocations: 7.111 MB / 0.8456 GB, free: 22.12 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003159/2.18, allocations: 455.3 kB / 0.846 GB, free: 21.68 MB / 490.8 MB Notification: Performance of SimCode: time 2.054e-06/2.18, allocations: 0 / 0.846 GB, free: 21.68 MB / 490.8 MB Notification: Performance of Templates: time 1.423/3.602, allocations: 460 MB / 1.295 GB, free: 104 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches