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.001252/0.001252, allocations: 104.8 kB / 17.74 MB, free: 5.316 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.001249/0.001249, allocations: 194.9 kB / 18.67 MB, free: 4.395 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.325/1.325, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009278/0.0009278, allocations: 51.91 kB / 352 MB, free: 3.168 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2097, allocations: 49.44 MB / 401.5 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03753/0.2472, allocations: 39.43 MB / 440.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01994/0.2672, allocations: 10.43 MB / 451.3 MB, free: 6.773 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006398/0.2737, allocations: 303 kB / 451.6 MB, free: 6.477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01959/0.2933, allocations: 8.568 MB / 460.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.3041, allocations: 3.488 MB / 463.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006639/0.3107, allocations: 2.331 MB / 466 MB, free: 8.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01508/0.3258, allocations: 12.89 MB / 478.9 MB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03607/0.3619, allocations: 25.3 MB / 0.4924 GB, free: 1.668 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009346/0.3713, allocations: 6.822 MB / 0.499 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01133/0.3826, allocations: 7.724 MB / 0.5066 GB, free: 3.078 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004918/0.3876, allocations: 1.953 MB / 0.5085 GB, free: 1.125 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006403/0.394, allocations: 2.347 MB / 0.5108 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005054/0.3991, allocations: 3.947 MB / 0.5146 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01113/0.4102, allocations: 7.556 MB / 0.522 GB, free: 3.234 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4089/0.8191, allocations: 25.86 MB / 0.5473 GB, free: 56.14 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.8192, allocations: 0 / 0.5473 GB, free: 56.14 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.8192, allocations: 0 / 0.5473 GB, free: 56.14 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005873/0.8198, allocations: 0.5 kB / 0.5473 GB, free: 56.14 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.03767/0.8575, allocations: 15.01 MB / 0.5619 GB, free: 52.21 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.8575, allocations: 9.594 kB / 0.5619 GB, free: 52.21 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03268/0.8902, allocations: 6.141 MB / 0.5679 GB, free: 50.8 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01647/0.9067, allocations: 8.053 MB / 0.5758 GB, free: 48.49 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006035/0.9073, allocations: 0.9045 MB / 0.5767 GB, free: 48.46 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004211/0.9116, allocations: 1.194 MB / 0.5778 GB, free: 48.39 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03677/0.9483, allocations: 18.65 MB / 0.5961 GB, free: 32.87 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000318/0.9487, allocations: 23.8 kB / 0.5961 GB, free: 32.85 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002714/0.9514, allocations: 0.4944 MB / 0.5966 GB, free: 32.37 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004393/0.9518, allocations: 0.6448 MB / 0.5972 GB, free: 31.72 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02874/0.9806, allocations: 16.76 MB / 0.6136 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08612/1.067, allocations: 58.11 MB / 0.6703 GB, free: 4.473 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02522/1.092, allocations: 32.88 MB / 0.7024 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005753/1.098, allocations: 3.71 MB / 0.7061 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01504/1.113, allocations: 8.627 MB / 0.7145 GB, free: 3.414 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/1.113, allocations: 69.31 kB / 0.7145 GB, free: 3.336 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.02e-06/1.113, allocations: 0 / 0.7145 GB, free: 3.336 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03395/1.147, allocations: 17.57 MB / 0.7317 GB, free: 1.672 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/1.147, allocations: 94.47 kB / 0.7318 GB, free: 1.566 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006946/1.154, allocations: 5.009 MB / 0.7367 GB, free: 12.56 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0004363/1.154, allocations: 93.7 kB / 0.7368 GB, free: 12.46 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003126/1.157, allocations: 5.446 MB / 0.7421 GB, free: 6.984 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001134/1.159, allocations: 1.356 MB / 0.7434 GB, free: 5.641 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001833/1.16, allocations: 1.326 MB / 0.7447 GB, free: 4.305 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 8.181e-05/1.161, allocations: 301.1 kB / 0.745 GB, free: 4.008 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004208/1.165, allocations: 2.902 MB / 0.7478 GB, free: 1.102 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1968/1.362, allocations: 5.869 MB / 0.7536 GB, free: 220.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008811/1.37, allocations: 9.44 MB / 0.7628 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.378e-05/1.371, allocations: 31.69 kB / 0.7628 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01355/1.384, allocations: 9.845 MB / 0.7724 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.782e-05/1.384, allocations: 48.34 kB / 0.7725 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/1.384, allocations: 99.88 kB / 0.7726 GB, free: 211.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/1.386, allocations: 0.9414 MB / 0.7735 GB, free: 210.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00496/1.391, allocations: 1.586 MB / 0.775 GB, free: 210.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009692/1.401, allocations: 10.18 MB / 0.785 GB, free: 203.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00454/1.406, allocations: 412.5 kB / 0.7854 GB, free: 203.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004711/1.406, allocations: 352 kB / 0.7857 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.005465/1.412, allocations: 4.241 MB / 0.7898 GB, free: 201.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009038/1.413, allocations: 0.5123 MB / 0.7903 GB, free: 201.6 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0092/1.422, allocations: 6.485 MB / 0.7967 GB, free: 196.4 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.171e-05/1.422, allocations: 23.03 kB / 0.7967 GB, free: 196.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/1.422, allocations: 0 / 0.7967 GB, free: 196.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002029/1.424, allocations: 1.049 MB / 0.7977 GB, free: 195.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006871/1.425, allocations: 71.8 kB / 0.7978 GB, free: 195.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002211/1.427, allocations: 224.7 kB / 0.798 GB, free: 195.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004478/1.427, allocations: 273.8 kB / 0.7983 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009578/1.437, allocations: 6.062 MB / 0.8042 GB, free: 190.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00923/1.446, allocations: 8.011 MB / 0.812 GB, free: 183.5 MB / 0.5763 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002497/1.449, allocations: 2.423 MB / 0.8144 GB, free: 181.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004263/1.453, allocations: 3.351 MB / 0.8176 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of Backend: time 5.71e-07/1.453, allocations: 0 / 0.8176 GB, free: 178.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.00935/1.462, allocations: 5.882 MB / 0.8234 GB, free: 172.6 MB / 0.5763 GB Notification: Performance of SimCode: time 0.02835/1.491, allocations: 19.27 MB / 0.8422 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of Templates: time 0.1241/1.615, allocations: 86.98 MB / 0.9272 GB, free: 67.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