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/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_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/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 225.6 MB / 234.8 MB, free: 3.188 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009113/0.0009113, allocations: 96.23 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.5e-05/1.503e-05, allocations: 4 kB / 343.7 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09638, allocations: 51.48 MB / 395.2 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4037/0.5002, allocations: 157.4 MB / 0.5396 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004764/0.5007, allocations: 109.7 kB / 0.5397 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.917/2.418, allocations: 388.9 MB / 0.9196 GB, free: 40.96 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.345e-06/2.418, allocations: 4 kB / 0.9196 GB, free: 40.95 MB / 474.8 MB Notification: Performance of Transformations before backend: time 0.001243/2.419, allocations: 279.3 kB / 0.9198 GB, free: 40.95 MB / 474.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.04022/2.459, allocations: 10.77 MB / 0.9303 GB, free: 38.41 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/2.459, allocations: 8.594 kB / 0.9304 GB, free: 38.41 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02592/2.485, allocations: 4.397 MB / 0.9346 GB, free: 37.75 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02377/2.509, allocations: 9.332 MB / 0.9438 GB, free: 36.63 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007013/2.51, allocations: 387.7 kB / 0.9441 GB, free: 36.63 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006241/2.516, allocations: 0.6946 MB / 0.9448 GB, free: 36.62 MB / 474.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0363/2.552, allocations: 13.9 MB / 0.9584 GB, free: 36.56 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05071/2.603, allocations: 16.36 MB / 0.9744 GB, free: 35.15 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005563/2.604, allocations: 21.12 kB / 0.9744 GB, free: 35.14 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004352/2.608, allocations: 11.41 kB / 0.9744 GB, free: 35.14 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009356/2.609, allocations: 0.8109 MB / 0.9752 GB, free: 35.11 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1214/2.731, allocations: 58.6 MB / 1.032 GB, free: 13.71 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03359/2.764, allocations: 32.81 MB / 1.064 GB, free: 14.98 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008533/2.773, allocations: 3.871 MB / 1.068 GB, free: 13.57 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02233/2.795, allocations: 8.972 MB / 1.077 GB, free: 9.246 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.351e-05/2.795, allocations: 75.42 kB / 1.077 GB, free: 9.176 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=352): time 5.05e-06/2.795, allocations: 0.75 kB / 1.077 GB, free: 9.176 MB / 0.4949 GB Notification: Performance of matching and sorting (n=394): time 0.05217/2.847, allocations: 17.21 MB / 1.094 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.781e-05/2.848, allocations: 94.44 kB / 1.094 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008338/2.856, allocations: 3.784 MB / 1.098 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001106/2.857, allocations: 25.7 kB / 1.098 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004557/2.862, allocations: 5.467 MB / 1.103 GB, free: 7.004 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002302/2.864, allocations: 1.312 MB / 1.104 GB, free: 5.805 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006766/2.865, allocations: 0 / 1.104 GB, free: 5.805 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006051/2.865, allocations: 0.58 MB / 1.105 GB, free: 5.301 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004851/2.87, allocations: 2.799 MB / 1.108 GB, free: 2.797 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3547/3.225, allocations: 5.792 MB / 1.113 GB, free: 81.13 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/3.237, allocations: 5.145 MB / 1.118 GB, free: 81.07 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000231/3.237, allocations: 31.22 kB / 1.118 GB, free: 81.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=876) (initialization): time 0.02351/3.26, allocations: 10.17 MB / 1.128 GB, free: 80.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001668/3.261, allocations: 49.14 kB / 1.128 GB, free: 80.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001724/3.261, allocations: 106.6 kB / 1.128 GB, free: 80.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/3.263, allocations: 1.029 MB / 1.129 GB, free: 80.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00621/3.27, allocations: 1.604 MB / 1.131 GB, free: 80.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01134/3.281, allocations: 9.919 MB / 1.141 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006453/3.287, allocations: 310.4 kB / 1.141 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001879/3.289, allocations: 359.2 kB / 1.141 GB, free: 77.14 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (818): * Single equations (assignments): 812 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,62.5%) 46,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002616/3.292, allocations: 370.1 kB / 1.142 GB, free: 77.04 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001698/3.294, allocations: 496.4 kB / 1.142 GB, free: 77.04 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01924/3.313, allocations: 7.278 MB / 1.149 GB, free: 76.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.634e-05/3.313, allocations: 41.62 kB / 1.149 GB, free: 76.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.569e-05/3.313, allocations: 14.73 kB / 1.149 GB, free: 76.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.29e-05/3.313, allocations: 22.42 kB / 1.149 GB, free: 76.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04068/3.354, allocations: 15 MB / 1.164 GB, free: 76.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.461e-05/3.354, allocations: 5.844 kB / 1.164 GB, free: 76.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003701/3.358, allocations: 0.7594 MB / 1.165 GB, free: 76.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002434/3.36, allocations: 0.8403 MB / 1.166 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007195/3.361, allocations: 29.52 kB / 1.166 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/3.372, allocations: 9.069 MB / 1.174 GB, free: 72.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/3.372, allocations: 9.5 kB / 1.174 GB, free: 72.36 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02126/3.393, allocations: 10.74 MB / 1.185 GB, free: 71.33 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003404/3.397, allocations: 1.055 MB / 1.186 GB, free: 70.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001869/3.399, allocations: 12.64 kB / 1.186 GB, free: 70.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004228/3.403, allocations: 207.1 kB / 1.186 GB, free: 70.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001065/3.404, allocations: 269.4 kB / 1.186 GB, free: 70.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005602/3.404, allocations: 111.2 kB / 1.186 GB, free: 70.96 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007396/3.412, allocations: 2.738 MB / 1.189 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.71e-07/3.412, allocations: 0 / 1.189 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01226/3.424, allocations: 1.721 MB / 1.191 GB, free: 70.79 MB / 0.5105 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 356 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,59.4%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002124/3.426, allocations: 0.5242 MB / 1.191 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01438/3.441, allocations: 7.461 MB / 1.199 GB, free: 69.98 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/3.441, allocations: 2.531 kB / 1.199 GB, free: 69.98 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007732/3.449, allocations: 3.553 MB / 1.202 GB, free: 69.38 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009203/3.458, allocations: 0.9786 MB / 1.203 GB, free: 69.34 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0517/3.51, allocations: 16.86 MB / 1.22 GB, free: 64.86 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01623/3.526, allocations: 7.52 MB / 1.227 GB, free: 62.26 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009286/3.535, allocations: 2.141 MB / 1.229 GB, free: 62.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00257/3.538, allocations: 389.7 kB / 1.229 GB, free: 62.04 MB / 0.5105 GB Notification: Performance of SimCode: time 1.132e-06/3.538, allocations: 0 / 1.229 GB, free: 62.04 MB / 0.5105 GB Notification: Performance of Templates: time 0.5083/4.046, allocations: 66.04 MB / 1.294 GB, free: 79.93 MB / 0.5105 GB 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","../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