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.001083/0.001083, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 59.89 kB / 358.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2892, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0422/0.3314, allocations: 40.08 MB / 449.4 MB, free: 9.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02807/0.3595, allocations: 10.65 MB / 460 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.011/0.3706, allocations: 311 kB / 460.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02084/0.3915, allocations: 8.521 MB / 468.8 MB, free: 5.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0127/0.4043, allocations: 3.406 MB / 472.3 MB, free: 2.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008168/0.4124, allocations: 2.364 MB / 474.6 MB, free: 28 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01782/0.4303, allocations: 12.95 MB / 487.6 MB, free: 3.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04114/0.4714, allocations: 25.32 MB / 0.5009 GB, free: 9.562 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01313/0.4846, allocations: 6.794 MB / 0.5075 GB, free: 2.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01345/0.4981, allocations: 7.837 MB / 0.5152 GB, free: 10.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005275/0.5034, allocations: 1.949 MB / 0.5171 GB, free: 8.934 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007398/0.5108, allocations: 2.367 MB / 0.5194 GB, free: 6.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006349/0.5172, allocations: 3.947 MB / 0.5232 GB, free: 2.613 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01243/0.5297, allocations: 7.564 MB / 0.5306 GB, free: 11.02 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4617/0.9914, allocations: 25.97 MB / 0.556 GB, free: 55.52 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.9915, allocations: 0 / 0.556 GB, free: 55.52 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.9915, allocations: 3.156 kB / 0.556 GB, free: 55.52 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000892/0.9924, allocations: 0 / 0.556 GB, free: 55.52 MB / 462.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.05619/1.049, allocations: 15.33 MB / 0.5709 GB, free: 48.69 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/1.049, allocations: 11 kB / 0.571 GB, free: 48.69 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03456/1.083, allocations: 6.213 MB / 0.577 GB, free: 46.23 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01731/1.101, allocations: 8.092 MB / 0.5849 GB, free: 42.7 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007881/1.101, allocations: 0.9058 MB / 0.5858 GB, free: 42.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005999/1.107, allocations: 1.195 MB / 0.587 GB, free: 41.89 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04972/1.157, allocations: 18.66 MB / 0.6052 GB, free: 25.15 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004276/1.158, allocations: 23.91 kB / 0.6052 GB, free: 25.12 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004373/1.162, allocations: 0.4899 MB / 0.6057 GB, free: 24.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005407/1.163, allocations: 0.6382 MB / 0.6063 GB, free: 24 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0379/1.2, allocations: 16.77 MB / 0.6227 GB, free: 7.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1109/1.311, allocations: 58.98 MB / 0.6803 GB, free: 11.79 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02889/1.34, allocations: 33.22 MB / 0.7127 GB, free: 6.68 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007351/1.348, allocations: 3.734 MB / 0.7164 GB, free: 2.93 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0189/1.367, allocations: 8.857 MB / 0.725 GB, free: 10.11 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.567e-05/1.367, allocations: 81.3 kB / 0.7251 GB, free: 10.02 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 6.632e-06/1.367, allocations: 0 / 0.7251 GB, free: 10.02 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.03927/1.406, allocations: 17.71 MB / 0.7424 GB, free: 8.219 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/1.406, allocations: 94.47 kB / 0.7425 GB, free: 8.113 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007989/1.414, allocations: 5.042 MB / 0.7474 GB, free: 3.078 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0006912/1.415, allocations: 89.7 kB / 0.7475 GB, free: 2.984 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2149/1.63, allocations: 5.63 MB / 0.753 GB, free: 217.9 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001372/1.631, allocations: 1.421 MB / 0.7544 GB, free: 217.1 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002016/1.633, allocations: 1.33 MB / 0.7557 GB, free: 216.9 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.16e-05/1.633, allocations: 306.1 kB / 0.756 GB, free: 216.6 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003915/1.637, allocations: 2.909 MB / 0.7588 GB, free: 216.6 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005196/1.642, allocations: 5.874 MB / 0.7646 GB, free: 212.1 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009865/1.652, allocations: 9.441 MB / 0.7738 GB, free: 205.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/1.653, allocations: 26.66 kB / 0.7738 GB, free: 205.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01552/1.668, allocations: 9.871 MB / 0.7834 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.592e-05/1.668, allocations: 46.78 kB / 0.7835 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/1.668, allocations: 104.6 kB / 0.7836 GB, free: 201.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/1.671, allocations: 0.9453 MB / 0.7845 GB, free: 200.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005131/1.676, allocations: 1.577 MB / 0.786 GB, free: 200.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009831/1.686, allocations: 10.2 MB / 0.796 GB, free: 191.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005362/1.691, allocations: 404.3 kB / 0.7964 GB, free: 191.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009158/1.692, allocations: 359.3 kB / 0.7967 GB, free: 191.2 MB / 0.5763 GB 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 (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006243/1.698, allocations: 4.252 MB / 0.8009 GB, free: 187.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/1.699, allocations: 0.5391 MB / 0.8014 GB, free: 187 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/1.711, allocations: 6.475 MB / 0.8077 GB, free: 181.5 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/1.711, allocations: 40 kB / 0.8078 GB, free: 181.5 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/1.711, allocations: 8 kB / 0.8078 GB, free: 181.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.798e-05/1.711, allocations: 25.42 kB / 0.8078 GB, free: 181.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/1.739, allocations: 15.72 MB / 0.8231 GB, free: 168.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/1.739, allocations: 0 / 0.8231 GB, free: 168.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002966/1.742, allocations: 0.7571 MB / 0.8239 GB, free: 167.4 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/1.744, allocations: 0.7839 MB / 0.8247 GB, free: 166.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002498/1.744, allocations: 91.97 kB / 0.8247 GB, free: 166.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008126/1.752, allocations: 9.344 MB / 0.8339 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/1.752, allocations: 8.156 kB / 0.8339 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01145/1.764, allocations: 9.522 MB / 0.8432 GB, free: 147.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002149/1.766, allocations: 1.087 MB / 0.8442 GB, free: 146 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00105/1.767, allocations: 72 kB / 0.8443 GB, free: 145.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002713/1.77, allocations: 219.8 kB / 0.8445 GB, free: 145.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005237/1.77, allocations: 258.8 kB / 0.8448 GB, free: 145.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000267/1.771, allocations: 116 kB / 0.8449 GB, free: 145.3 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005028/1.776, allocations: 3.366 MB / 0.8482 GB, free: 142 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.01e-07/1.776, allocations: 0 / 0.8482 GB, free: 142 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006904/1.783, allocations: 1.887 MB / 0.85 GB, free: 140.1 MB / 0.5763 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 () * 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 (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.0006851/1.783, allocations: 266.3 kB / 0.8503 GB, free: 139.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01106/1.794, allocations: 7.67 MB / 0.8577 GB, free: 132.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.794, allocations: 0 / 0.8577 GB, free: 132.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004616/1.799, allocations: 3.575 MB / 0.8612 GB, free: 128.4 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006346/1.805, allocations: 1.307 MB / 0.8625 GB, free: 127.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02818/1.834, allocations: 20 MB / 0.882 GB, free: 107.1 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005882/1.84, allocations: 7.34 MB / 0.8892 GB, free: 99.71 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005143/1.845, allocations: 2.164 MB / 0.8913 GB, free: 97.55 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001143/1.846, allocations: 407.4 kB / 0.8917 GB, free: 97.15 MB / 0.5763 GB Notification: Performance of SimCode: time 5.11e-07/1.846, allocations: 0 / 0.8917 GB, free: 97.15 MB / 0.5763 GB Notification: Performance of Templates: time 0.3412/2.187, allocations: 72.15 MB / 0.9622 GB, free: 202.6 MB / 0.5763 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","/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