Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.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_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_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009363/0.0009363, allocations: 94.77 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 195 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.7 MB / 246.4 MB, free: 9.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002569/0.0002572, allocations: 4 kB / 307.1 MB, free: 0.9297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1036, allocations: 51.52 MB / 358.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2111/0.3148, allocations: 35.01 MB / 393.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02531/0.3401, allocations: 9.882 MB / 403.5 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01111/0.3513, allocations: 279.3 kB / 403.8 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01037/0.3617, allocations: 1.653 MB / 405.5 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01427/0.376, allocations: 2.817 MB / 408.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007982/0.384, allocations: 1.536 MB / 409.8 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02171/0.4058, allocations: 13.85 MB / 423.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04148/0.4473, allocations: 19.91 MB / 443.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01039/0.4577, allocations: 4.804 MB / 448.4 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01053/0.4683, allocations: 5.685 MB / 454.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003447/0.4718, allocations: 0.7616 MB / 454.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006318/0.4782, allocations: 1.144 MB / 456 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003482/0.4817, allocations: 2.453 MB / 458.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004745/0.4864, allocations: 2.515 MB / 460.9 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02588/0.5123, allocations: 21.71 MB / 482.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.5124, allocations: 0 / 482.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5124, allocations: 3.938 kB / 482.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008146/0.5132, allocations: 4 kB / 482.7 MB, free: 15.87 MB / 398.1 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.03519/0.5484, allocations: 12.58 MB / 495.2 MB, free: 3.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5485, allocations: 11.97 kB / 495.3 MB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03412/0.5826, allocations: 6.15 MB / 0.4897 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01706/0.5997, allocations: 7.706 MB / 0.4972 GB, free: 5.211 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009493/0.6007, allocations: 0.911 MB / 0.4981 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0039/0.6046, allocations: 1.195 MB / 0.4992 GB, free: 3.102 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04373/0.6484, allocations: 18.56 MB / 0.5174 GB, free: 460 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003567/0.6488, allocations: 31.72 kB / 0.5174 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00178/0.6506, allocations: 496 kB / 0.5179 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005785/0.6512, allocations: 0.6421 MB / 0.5185 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2421/0.8933, allocations: 16.66 MB / 0.5348 GB, free: 123 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09601/0.9893, allocations: 59.72 MB / 0.5931 GB, free: 84.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02027/1.01, allocations: 33.16 MB / 0.6255 GB, free: 52.15 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005608/1.015, allocations: 3.765 MB / 0.6291 GB, free: 48.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01414/1.029, allocations: 8.873 MB / 0.6378 GB, free: 39.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.244e-05/1.03, allocations: 77.31 kB / 0.6379 GB, free: 39.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.28e-06/1.03, allocations: 0 / 0.6379 GB, free: 39.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03504/1.065, allocations: 18.47 MB / 0.6559 GB, free: 20.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/1.065, allocations: 94.47 kB / 0.656 GB, free: 20.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007323/1.072, allocations: 4.99 MB / 0.6609 GB, free: 15.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008044/1.073, allocations: 89.7 kB / 0.661 GB, free: 15.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002593/1.075, allocations: 5.451 MB / 0.6663 GB, free: 10.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001651/1.077, allocations: 1.352 MB / 0.6676 GB, free: 8.758 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003711/1.077, allocations: 136 kB / 0.6677 GB, free: 8.625 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003098/1.078, allocations: 0.5791 MB / 0.6683 GB, free: 8.039 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004045/1.082, allocations: 2.883 MB / 0.6711 GB, free: 5.152 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005886/1.088, allocations: 5.852 MB / 0.6768 GB, free: 13.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007283/1.095, allocations: 4.195 MB / 0.6809 GB, free: 9.676 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/1.095, allocations: 28 kB / 0.681 GB, free: 9.648 MB / 462.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01964/1.115, allocations: 9.796 MB / 0.6905 GB, free: 15.79 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.524e-05/1.115, allocations: 51.95 kB / 0.6906 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001644/1.115, allocations: 100 kB / 0.6907 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002443/1.118, allocations: 0.9457 MB / 0.6916 GB, free: 14.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006196/1.124, allocations: 1.587 MB / 0.6931 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/1.136, allocations: 9.488 MB / 0.7024 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006145/1.142, allocations: 407.2 kB / 0.7028 GB, free: 2.793 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.144, allocations: 348 kB / 0.7031 GB, free: 2.453 MB / 478.1 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.008626/1.152, allocations: 4.245 MB / 0.7073 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001263/1.154, allocations: 0.5132 MB / 0.7078 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/1.165, allocations: 6.497 MB / 0.7141 GB, free: 7.129 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.58e-05/1.166, allocations: 40 kB / 0.7142 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.541e-05/1.166, allocations: 8 kB / 0.7142 GB, free: 7.082 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.552e-05/1.166, allocations: 19.92 kB / 0.7142 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.245/1.411, allocations: 15.7 MB / 0.7295 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.518e-05/1.411, allocations: 3.188 kB / 0.7295 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00562/1.416, allocations: 0.7457 MB / 0.7302 GB, free: 157.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003607/1.42, allocations: 0.7845 MB / 0.731 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008188/1.421, allocations: 87.83 kB / 0.7311 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01498/1.436, allocations: 8.657 MB / 0.7396 GB, free: 151.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/1.436, allocations: 7.25 kB / 0.7396 GB, free: 151.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01985/1.456, allocations: 9.463 MB / 0.7488 GB, free: 147.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003181/1.459, allocations: 1.063 MB / 0.7498 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/1.46, allocations: 71.78 kB / 0.7499 GB, free: 147.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0033/1.463, allocations: 224 kB / 0.7501 GB, free: 147.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007529/1.464, allocations: 268.8 kB / 0.7504 GB, free: 147 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004101/1.465, allocations: 115.3 kB / 0.7505 GB, free: 147 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007297/1.472, allocations: 3.322 MB / 0.7537 GB, free: 145.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.472, allocations: 0 / 0.7537 GB, free: 145.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01175/1.484, allocations: 1.89 MB / 0.7556 GB, free: 145.6 MB / 494.1 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.001605/1.485, allocations: 264.9 kB / 0.7558 GB, free: 145.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.018/1.503, allocations: 7.598 MB / 0.7632 GB, free: 142.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/1.503, allocations: 5.75 kB / 0.7633 GB, free: 142.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008929/1.512, allocations: 3.546 MB / 0.7667 GB, free: 139.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01224/1.525, allocations: 1.245 MB / 0.7679 GB, free: 138.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0464/1.571, allocations: 23.94 MB / 0.7913 GB, free: 116.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009635/1.581, allocations: 7.328 MB / 0.7985 GB, free: 110.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006371/1.587, allocations: 2.148 MB / 0.8006 GB, free: 109.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/1.588, allocations: 411.3 kB / 0.801 GB, free: 108.8 MB / 494.1 MB Notification: Performance of SimCode: time 7.02e-07/1.588, allocations: 0 / 0.801 GB, free: 108.8 MB / 494.1 MB Notification: Performance of Templates: time 0.116/1.704, allocations: 71.27 MB / 0.8706 GB, free: 38.17 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches