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.001138/0.001138, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.3 MB, free: 9.172 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 62.28 kB / 306.3 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09167, allocations: 50.54 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1911/0.2828, allocations: 39.34 MB / 396.2 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02185/0.3047, allocations: 10.54 MB / 406.7 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006771/0.3115, allocations: 297.8 kB / 407 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01718/0.3287, allocations: 7.995 MB / 415 MB, free: 292 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01132/0.3401, allocations: 3.097 MB / 418.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005754/0.3458, allocations: 2.207 MB / 420.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01515/0.361, allocations: 13.03 MB / 433.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03076/0.3918, allocations: 20.58 MB / 453.9 MB, free: 11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008363/0.4002, allocations: 5.884 MB / 459.8 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01104/0.4113, allocations: 7.384 MB / 467.2 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003974/0.4153, allocations: 1.301 MB / 468.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005738/0.421, allocations: 1.714 MB / 470.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003999/0.425, allocations: 3.275 MB / 473.5 MB, free: 7.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008675/0.4337, allocations: 6.868 MB / 480.3 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02123/0.455, allocations: 25.29 MB / 0.4938 GB, free: 7.129 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.455, allocations: 0 / 0.4938 GB, free: 7.129 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.455, allocations: 0 / 0.4938 GB, free: 7.129 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005584/0.4556, allocations: 0 / 0.4938 GB, free: 7.129 MB / 414.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.04577/0.5014, allocations: 15.07 MB / 0.5085 GB, free: 7.938 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.5014, allocations: 8.031 kB / 0.5085 GB, free: 7.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03435/0.5358, allocations: 6.135 MB / 0.5145 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01633/0.5522, allocations: 7.797 MB / 0.5221 GB, free: 9.895 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009248/0.5531, allocations: 0.9072 MB / 0.523 GB, free: 8.984 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003855/0.557, allocations: 1.195 MB / 0.5242 GB, free: 7.789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.237/0.794, allocations: 18.67 MB / 0.5424 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004917/0.7945, allocations: 16.73 kB / 0.5424 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00249/0.797, allocations: 0.4934 MB / 0.5429 GB, free: 123.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001205/0.7982, allocations: 0.6448 MB / 0.5435 GB, free: 123.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03506/0.8333, allocations: 16.76 MB / 0.5599 GB, free: 116.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09431/0.9277, allocations: 59.54 MB / 0.618 GB, free: 62.64 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02546/0.9532, allocations: 33.21 MB / 0.6504 GB, free: 25.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00842/0.9617, allocations: 3.762 MB / 0.6541 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02026/0.982, allocations: 8.87 MB / 0.6628 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.773e-05/0.9821, allocations: 69.31 kB / 0.6629 GB, free: 12.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 9.288e-06/0.9821, allocations: 0 / 0.6629 GB, free: 12.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.04576/1.028, allocations: 17.57 MB / 0.68 GB, free: 11.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/1.028, allocations: 94.41 kB / 0.6801 GB, free: 10.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009879/1.038, allocations: 5.033 MB / 0.685 GB, free: 5.922 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007531/1.039, allocations: 89.7 kB / 0.6851 GB, free: 5.828 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004247/1.043, allocations: 5.456 MB / 0.6904 GB, free: 348 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001824/1.045, allocations: 1.351 MB / 0.6917 GB, free: 15 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003644/1.048, allocations: 1.322 MB / 0.693 GB, free: 13.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/1.049, allocations: 305.1 kB / 0.6933 GB, free: 13.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00544/1.054, allocations: 2.906 MB / 0.6962 GB, free: 10.45 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007784/1.062, allocations: 5.876 MB / 0.7019 GB, free: 3.176 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01448/1.076, allocations: 9.441 MB / 0.7111 GB, free: 8.297 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/1.077, allocations: 28 kB / 0.7111 GB, free: 8.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2083/1.285, allocations: 9.839 MB / 0.7208 GB, free: 152.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001229/1.285, allocations: 52.59 kB / 0.7208 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000195/1.285, allocations: 98.78 kB / 0.7209 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002934/1.288, allocations: 0.9409 MB / 0.7218 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006051/1.294, allocations: 1.589 MB / 0.7234 GB, free: 152.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/1.306, allocations: 9.47 MB / 0.7326 GB, free: 148.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005346/1.312, allocations: 400.9 kB / 0.733 GB, free: 148.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001305/1.313, allocations: 359 kB / 0.7333 GB, free: 148.3 MB / 494.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 (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.007729/1.321, allocations: 4.244 MB / 0.7375 GB, free: 146.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001532/1.322, allocations: 0.519 MB / 0.738 GB, free: 146.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01213/1.334, allocations: 6.499 MB / 0.7443 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-05/1.334, allocations: 39.59 kB / 0.7444 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.141e-05/1.335, allocations: 7.906 kB / 0.7444 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.406e-05/1.335, allocations: 18.98 kB / 0.7444 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0359/1.37, allocations: 15.73 MB / 0.7598 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-05/1.371, allocations: 5.531 kB / 0.7598 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005446/1.376, allocations: 0.7525 MB / 0.7605 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003597/1.38, allocations: 0.7849 MB / 0.7613 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009863/1.381, allocations: 86.7 kB / 0.7614 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01156/1.392, allocations: 8.657 MB / 0.7698 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.392, allocations: 9.219 kB / 0.7698 GB, free: 131.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/1.406, allocations: 9.488 MB / 0.7791 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002728/1.409, allocations: 1.052 MB / 0.7801 GB, free: 127 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008295/1.41, allocations: 87.91 kB / 0.7802 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002508/1.412, allocations: 220.1 kB / 0.7804 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006249/1.413, allocations: 261.5 kB / 0.7807 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000265/1.413, allocations: 111 kB / 0.7808 GB, free: 126.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00552/1.419, allocations: 3.362 MB / 0.784 GB, free: 124.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.419, allocations: 0 / 0.784 GB, free: 124.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007965/1.427, allocations: 1.886 MB / 0.7859 GB, free: 122.7 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 (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.0008913/1.427, allocations: 272.6 kB / 0.7861 GB, free: 122.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01211/1.44, allocations: 7.65 MB / 0.7936 GB, free: 115.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/1.44, allocations: 0 / 0.7936 GB, free: 115.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005837/1.445, allocations: 3.558 MB / 0.7971 GB, free: 111.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006942/1.452, allocations: 1.222 MB / 0.7983 GB, free: 110.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0373/1.49, allocations: 24.98 MB / 0.8227 GB, free: 85.26 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006539/1.496, allocations: 7.325 MB / 0.8298 GB, free: 77.89 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006257/1.503, allocations: 2.149 MB / 0.8319 GB, free: 75.74 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.504, allocations: 411.4 kB / 0.8323 GB, free: 75.34 MB / 494.1 MB Notification: Performance of SimCode: time 1.042e-06/1.504, allocations: 0 / 0.8323 GB, free: 75.34 MB / 494.1 MB Notification: Performance of Templates: time 0.3176/1.822, allocations: 73.78 MB / 0.9044 GB, free: 144.9 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