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.001079/0.001079, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001152, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 68.06 kB / 358.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2906, allocations: 50.55 MB / 409.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04164/0.3322, allocations: 40.07 MB / 449.4 MB, free: 9.293 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02661/0.3589, allocations: 10.65 MB / 460 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009516/0.3685, allocations: 307 kB / 460.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0218/0.3904, allocations: 8.588 MB / 468.9 MB, free: 5.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0128/0.4032, allocations: 3.48 MB / 472.4 MB, free: 2.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007666/0.4109, allocations: 2.371 MB / 474.8 MB, free: 15.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01798/0.4289, allocations: 12.95 MB / 487.7 MB, free: 2.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04719/0.4761, allocations: 25.32 MB / 0.501 GB, free: 9.359 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01309/0.4892, allocations: 6.822 MB / 0.5077 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01422/0.5035, allocations: 7.841 MB / 0.5153 GB, free: 10.65 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005794/0.5093, allocations: 1.949 MB / 0.5172 GB, free: 8.699 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008117/0.5175, allocations: 2.359 MB / 0.5195 GB, free: 6.344 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006524/0.524, allocations: 3.959 MB / 0.5234 GB, free: 2.375 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0126/0.5367, allocations: 7.564 MB / 0.5308 GB, free: 10.78 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2865/0.8232, allocations: 25.9 MB / 0.5561 GB, free: 55.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.8232, allocations: 0 / 0.5561 GB, free: 55.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.8232, allocations: 4.5 kB / 0.5561 GB, free: 55.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001336/0.8246, allocations: 0 / 0.5561 GB, free: 55.71 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.05043/0.875, allocations: 15.04 MB / 0.5708 GB, free: 49.19 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.8751, allocations: 13.03 kB / 0.5708 GB, free: 49.18 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03302/0.9081, allocations: 6.15 MB / 0.5768 GB, free: 46.78 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02026/0.9284, allocations: 8.07 MB / 0.5847 GB, free: 43.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009784/0.9294, allocations: 0.9013 MB / 0.5856 GB, free: 42.89 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006999/0.9364, allocations: 1.2 MB / 0.5867 GB, free: 42.49 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05321/0.9897, allocations: 18.65 MB / 0.6049 GB, free: 25.73 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000583/0.9903, allocations: 19.36 kB / 0.605 GB, free: 25.71 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005106/0.9954, allocations: 0.4965 MB / 0.6054 GB, free: 25.23 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006256/0.996, allocations: 0.6382 MB / 0.6061 GB, free: 24.59 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04179/1.038, allocations: 16.76 MB / 0.6224 GB, free: 7.812 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1294/1.167, allocations: 58.82 MB / 0.6799 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03117/1.198, allocations: 33.21 MB / 0.7123 GB, free: 7.387 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007457/1.206, allocations: 3.748 MB / 0.716 GB, free: 3.629 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02057/1.227, allocations: 8.819 MB / 0.7246 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.87e-05/1.227, allocations: 80.95 kB / 0.7247 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=349): time 5.27e-06/1.227, allocations: 0 / 0.7247 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of matching and sorting (n=389): time 0.04344/1.27, allocations: 17.56 MB / 0.7418 GB, free: 9.078 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/1.27, allocations: 94.47 kB / 0.7419 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/1.282, allocations: 5.029 MB / 0.7468 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009608/1.283, allocations: 89.7 kB / 0.7469 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.2383/1.521, allocations: 5.451 MB / 0.7522 GB, free: 218.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002042/1.523, allocations: 1.353 MB / 0.7535 GB, free: 217.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002723/1.526, allocations: 1.324 MB / 0.7548 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.844e-05/1.526, allocations: 308.3 kB / 0.7551 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004913/1.531, allocations: 2.903 MB / 0.758 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004832/1.536, allocations: 5.876 MB / 0.7637 GB, free: 213.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/1.546, allocations: 9.437 MB / 0.7729 GB, free: 206.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/1.546, allocations: 30.22 kB / 0.7729 GB, free: 206.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01523/1.561, allocations: 9.849 MB / 0.7826 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 7.371e-05/1.561, allocations: 49 kB / 0.7826 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/1.562, allocations: 96.97 kB / 0.7827 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002505/1.564, allocations: 0.9464 MB / 0.7836 GB, free: 201.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00579/1.57, allocations: 1.582 MB / 0.7852 GB, free: 201.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/1.58, allocations: 10.18 MB / 0.7951 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005859/1.586, allocations: 404.5 kB / 0.7955 GB, free: 192.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/1.587, allocations: 355.5 kB / 0.7958 GB, free: 192.2 MB / 0.5762 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.007796/1.595, allocations: 4.245 MB / 0.8 GB, free: 188.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001616/1.597, allocations: 0.5206 MB / 0.8005 GB, free: 188 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01106/1.608, allocations: 6.483 MB / 0.8068 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/1.608, allocations: 40 kB / 0.8069 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/1.608, allocations: 8 kB / 0.8069 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.748e-05/1.608, allocations: 18.89 kB / 0.8069 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02573/1.634, allocations: 15.71 MB / 0.8222 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/1.634, allocations: 4 kB / 0.8222 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002982/1.637, allocations: 0.7463 MB / 0.823 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001962/1.639, allocations: 0.7879 MB / 0.8237 GB, free: 167.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/1.639, allocations: 83.97 kB / 0.8238 GB, free: 167.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008136/1.647, allocations: 9.356 MB / 0.8329 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/1.647, allocations: 4 kB / 0.8329 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/1.659, allocations: 9.496 MB / 0.8422 GB, free: 148.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002259/1.661, allocations: 1.053 MB / 0.8433 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006343/1.662, allocations: 72 kB / 0.8433 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002142/1.664, allocations: 225.7 kB / 0.8435 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005024/1.664, allocations: 266.7 kB / 0.8438 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/1.664, allocations: 115.7 kB / 0.8439 GB, free: 146.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004379/1.669, allocations: 3.359 MB / 0.8472 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/1.669, allocations: 0 / 0.8472 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006176/1.675, allocations: 1.882 MB / 0.849 GB, free: 141.3 MB / 0.5762 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.0005904/1.676, allocations: 261.5 kB / 0.8493 GB, free: 141.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009313/1.685, allocations: 7.673 MB / 0.8568 GB, free: 133.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/1.685, allocations: 0 / 0.8568 GB, free: 133.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003994/1.689, allocations: 3.557 MB / 0.8602 GB, free: 129.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004955/1.694, allocations: 1.307 MB / 0.8615 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02785/1.722, allocations: 19.7 MB / 0.8807 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007169/1.729, allocations: 7.339 MB / 0.8879 GB, free: 101.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006434/1.735, allocations: 2.156 MB / 0.89 GB, free: 99.13 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/1.737, allocations: 407.4 kB / 0.8904 GB, free: 98.73 MB / 0.5762 GB Notification: Performance of SimCode: time 1.242e-06/1.737, allocations: 0 / 0.8904 GB, free: 98.73 MB / 0.5762 GB Notification: Performance of Templates: time 0.3504/2.087, allocations: 72.14 MB / 0.9609 GB, free: 203.4 MB / 0.5762 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