Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 110.6 kB / 17.74 MB, free: 5.227 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 185.5 kB / 18.67 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 43.92 kB / 352 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2707, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04141/0.3122, allocations: 39.44 MB / 440.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02542/0.3377, allocations: 10.42 MB / 451.3 MB, free: 6.797 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009551/0.3473, allocations: 306.9 kB / 451.6 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02036/0.3677, allocations: 8.503 MB / 460.1 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01289/0.3806, allocations: 3.406 MB / 463.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007758/0.3884, allocations: 2.327 MB / 465.8 MB, free: 8.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01773/0.4061, allocations: 12.88 MB / 478.7 MB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04458/0.4508, allocations: 25.3 MB / 0.4922 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01171/0.4625, allocations: 6.822 MB / 0.4989 GB, free: 10.99 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01337/0.4759, allocations: 7.724 MB / 0.5064 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005969/0.4819, allocations: 1.953 MB / 0.5083 GB, free: 1.289 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007875/0.4899, allocations: 2.339 MB / 0.5106 GB, free: 14.95 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006727/0.4966, allocations: 3.959 MB / 0.5145 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01422/0.5109, allocations: 7.544 MB / 0.5219 GB, free: 3.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5266/1.038, allocations: 25.87 MB / 0.5471 GB, free: 56.1 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/1.038, allocations: 0 / 0.5471 GB, free: 56.1 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.485e-06/1.038, allocations: 0 / 0.5471 GB, free: 56.1 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009054/1.038, allocations: 1.031 kB / 0.5471 GB, free: 56.1 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.04937/1.088, allocations: 15 MB / 0.5618 GB, free: 52.17 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/1.088, allocations: 9.906 kB / 0.5618 GB, free: 52.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03434/1.122, allocations: 6.145 MB / 0.5678 GB, free: 50.88 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01735/1.14, allocations: 8.056 MB / 0.5756 GB, free: 48.56 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009254/1.141, allocations: 0.9082 MB / 0.5765 GB, free: 48.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006153/1.147, allocations: 1.192 MB / 0.5777 GB, free: 48.41 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04921/1.196, allocations: 18.65 MB / 0.5959 GB, free: 32.93 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005658/1.197, allocations: 23.8 kB / 0.5959 GB, free: 32.91 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007411/1.204, allocations: 0.4925 MB / 0.5964 GB, free: 32.43 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006302/1.205, allocations: 0.6448 MB / 0.597 GB, free: 31.78 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03488/1.24, allocations: 16.76 MB / 0.6134 GB, free: 15.01 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1038/1.343, allocations: 58.12 MB / 0.6702 GB, free: 4.531 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02591/1.369, allocations: 32.87 MB / 0.7023 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006774/1.376, allocations: 3.71 MB / 0.7059 GB, free: 12.06 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01847/1.395, allocations: 8.637 MB / 0.7143 GB, free: 3.48 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.552e-05/1.395, allocations: 69.31 kB / 0.7144 GB, free: 3.402 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.42e-06/1.395, allocations: 0 / 0.7144 GB, free: 3.402 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03997/1.435, allocations: 17.57 MB / 0.7316 GB, free: 1.734 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/1.435, allocations: 90.47 kB / 0.7316 GB, free: 1.633 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01004/1.445, allocations: 5.016 MB / 0.7365 GB, free: 12.62 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008504/1.446, allocations: 89.7 kB / 0.7366 GB, free: 12.53 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003737/1.45, allocations: 5.439 MB / 0.7419 GB, free: 7.055 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.00178/1.451, allocations: 1.353 MB / 0.7433 GB, free: 5.715 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003265/1.455, allocations: 1.322 MB / 0.7445 GB, free: 4.383 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 9.198e-05/1.455, allocations: 309.1 kB / 0.7448 GB, free: 4.078 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004591/1.459, allocations: 2.902 MB / 0.7477 GB, free: 1.172 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2349/1.694, allocations: 5.874 MB / 0.7534 GB, free: 220.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009438/1.704, allocations: 9.437 MB / 0.7626 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001485/1.704, allocations: 27.69 kB / 0.7627 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01594/1.72, allocations: 9.845 MB / 0.7723 GB, free: 211 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/1.72, allocations: 49.25 kB / 0.7723 GB, free: 211 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.72, allocations: 101.6 kB / 0.7724 GB, free: 211 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00225/1.723, allocations: 0.9404 MB / 0.7733 GB, free: 210.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005382/1.728, allocations: 1.586 MB / 0.7749 GB, free: 210.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/1.738, allocations: 10.18 MB / 0.7848 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00559/1.744, allocations: 407.5 kB / 0.7852 GB, free: 203.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/1.745, allocations: 354.1 kB / 0.7855 GB, free: 203.6 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.00744/1.752, allocations: 4.245 MB / 0.7897 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/1.754, allocations: 0.5123 MB / 0.7902 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009763/1.764, allocations: 6.481 MB / 0.7965 GB, free: 196.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/1.764, allocations: 40 kB / 0.7966 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/1.764, allocations: 11.94 kB / 0.7966 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.894e-05/1.764, allocations: 23.22 kB / 0.7966 GB, free: 196.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02506/1.789, allocations: 15.69 MB / 0.8119 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.6e-05/1.789, allocations: 4 kB / 0.8119 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003142/1.792, allocations: 0.7459 MB / 0.8126 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002037/1.794, allocations: 0.789 MB / 0.8134 GB, free: 182.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004945/1.794, allocations: 89.89 kB / 0.8135 GB, free: 182.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008697/1.803, allocations: 9.343 MB / 0.8226 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.803, allocations: 7.938 kB / 0.8226 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/1.816, allocations: 9.493 MB / 0.8319 GB, free: 163.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002414/1.819, allocations: 1.059 MB / 0.8329 GB, free: 162.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009363/1.819, allocations: 72 kB / 0.833 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002597/1.822, allocations: 227.7 kB / 0.8332 GB, free: 162 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005325/1.823, allocations: 260.3 kB / 0.8335 GB, free: 161.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/1.823, allocations: 116 kB / 0.8336 GB, free: 161.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004886/1.828, allocations: 3.346 MB / 0.8369 GB, free: 158.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 5.11e-07/1.828, allocations: 0 / 0.8369 GB, free: 158.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007468/1.835, allocations: 1.874 MB / 0.8387 GB, free: 156.4 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.000865/1.836, allocations: 272.5 kB / 0.8389 GB, free: 156.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01072/1.847, allocations: 7.668 MB / 0.8464 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.847, allocations: 0 / 0.8464 GB, free: 148.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004824/1.852, allocations: 3.555 MB / 0.8499 GB, free: 144.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006375/1.858, allocations: 1.288 MB / 0.8512 GB, free: 143.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03279/1.891, allocations: 19.38 MB / 0.8701 GB, free: 124.1 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008257/1.899, allocations: 7.101 MB / 0.877 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001901/1.901, allocations: 459.3 kB / 0.8775 GB, free: 116.5 MB / 0.5763 GB Notification: Performance of SimCode: time 9.31e-07/1.901, allocations: 4 kB / 0.8775 GB, free: 116.5 MB / 0.5763 GB Notification: Performance of Templates: time 0.874/2.775, allocations: 461.6 MB / 1.328 GB, free: 74.09 MB / 0.5763 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches