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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009895/0.0009895, allocations: 102.4 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009134/0.0009135, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1928, allocations: 50.45 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02902/0.2219, allocations: 39.3 MB / 446.4 MB, free: 4.367 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02061/0.2426, allocations: 10.52 MB / 456.9 MB, free: 9.816 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007535/0.2502, allocations: 298.9 kB / 457.2 MB, free: 9.523 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0175/0.2677, allocations: 7.997 MB / 465.2 MB, free: 1.512 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01057/0.2783, allocations: 3.091 MB / 468.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007043/0.2853, allocations: 2.213 MB / 470.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01687/0.3022, allocations: 13.23 MB / 483.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02737/0.3296, allocations: 20.56 MB / 0.4925 GB, free: 10.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007929/0.3376, allocations: 5.907 MB / 0.4982 GB, free: 4.309 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2022/0.5399, allocations: 7.383 MB / 0.5054 GB, free: 23.79 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005041/0.5449, allocations: 1.303 MB / 0.5067 GB, free: 23.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006809/0.5518, allocations: 1.712 MB / 0.5084 GB, free: 23.79 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004588/0.5564, allocations: 3.282 MB / 0.5116 GB, free: 23.79 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01119/0.5676, allocations: 6.865 MB / 0.5183 GB, free: 23.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02148/0.5891, allocations: 25.26 MB / 0.543 GB, free: 12.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.5892, allocations: 3.656 kB / 0.543 GB, free: 12.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.5892, allocations: 0 / 0.543 GB, free: 12.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006846/0.5899, allocations: 0 / 0.543 GB, free: 12.62 MB / 378.7 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.04001/0.6299, allocations: 15.07 MB / 0.5577 GB, free: 3.109 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.63, allocations: 13.59 kB / 0.5577 GB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03097/0.6609, allocations: 6.126 MB / 0.5637 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01901/0.68, allocations: 7.799 MB / 0.5713 GB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001257/0.6813, allocations: 0.9113 MB / 0.5722 GB, free: 7.184 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004547/0.6859, allocations: 1.199 MB / 0.5734 GB, free: 5.996 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04035/0.7262, allocations: 18.66 MB / 0.5916 GB, free: 3.281 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003813/0.7266, allocations: 15.89 kB / 0.5916 GB, free: 3.266 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002536/0.7292, allocations: 0.4895 MB / 0.5921 GB, free: 2.785 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005996/0.7298, allocations: 0.6421 MB / 0.5927 GB, free: 2.141 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03121/0.761, allocations: 16.76 MB / 0.6091 GB, free: 1.375 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0908/0.8518, allocations: 59.54 MB / 0.6672 GB, free: 5.309 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1984/1.05, allocations: 33.21 MB / 0.6996 GB, free: 161.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006642/1.057, allocations: 3.764 MB / 0.7033 GB, free: 161.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01533/1.072, allocations: 8.869 MB / 0.712 GB, free: 159.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/1.072, allocations: 73.19 kB / 0.712 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=349): time 5.06e-06/1.072, allocations: 0 / 0.712 GB, free: 159.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=389): time 0.03029/1.103, allocations: 17.55 MB / 0.7292 GB, free: 152.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/1.103, allocations: 93.78 kB / 0.7293 GB, free: 152 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006186/1.109, allocations: 5.033 MB / 0.7342 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004683/1.11, allocations: 85.45 kB / 0.7343 GB, free: 150.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002117/1.112, allocations: 5.454 MB / 0.7396 GB, free: 146 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001075/1.113, allocations: 1.352 MB / 0.7409 GB, free: 145 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001888/1.115, allocations: 1.318 MB / 0.7422 GB, free: 144.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 4.898e-05/1.115, allocations: 308.9 kB / 0.7425 GB, free: 144 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003774/1.118, allocations: 2.903 MB / 0.7453 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00468/1.123, allocations: 5.874 MB / 0.7511 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008525/1.132, allocations: 9.444 MB / 0.7603 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.656e-05/1.132, allocations: 28 kB / 0.7603 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.013/1.145, allocations: 9.848 MB / 0.7699 GB, free: 120.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.424e-05/1.145, allocations: 48 kB / 0.77 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.4e-05/1.145, allocations: 100.4 kB / 0.7701 GB, free: 120 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/1.147, allocations: 0.946 MB / 0.771 GB, free: 119.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004664/1.152, allocations: 1.579 MB / 0.7725 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009035/1.161, allocations: 9.479 MB / 0.7818 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005054/1.166, allocations: 403.4 kB / 0.7822 GB, free: 107.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005501/1.167, allocations: 356 kB / 0.7825 GB, free: 107 MB / 0.4948 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.005836/1.172, allocations: 4.256 MB / 0.7867 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009295/1.173, allocations: 0.5093 MB / 0.7872 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009479/1.183, allocations: 6.489 MB / 0.7935 GB, free: 95.68 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/1.183, allocations: 43.98 kB / 0.7936 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/1.183, allocations: 11.98 kB / 0.7936 GB, free: 95.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/1.183, allocations: 15.94 kB / 0.7936 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/1.207, allocations: 15.73 MB / 0.8089 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/1.207, allocations: 4 kB / 0.809 GB, free: 79.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003102/1.21, allocations: 0.7454 MB / 0.8097 GB, free: 79.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003127/1.213, allocations: 0.7879 MB / 0.8104 GB, free: 78.28 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005474/1.214, allocations: 83.97 kB / 0.8105 GB, free: 78.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/1.229, allocations: 8.678 MB / 0.819 GB, free: 69.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/1.229, allocations: 7.938 kB / 0.819 GB, free: 69.12 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07994/1.309, allocations: 34.88 MB / 0.8531 GB, free: 33.56 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004001/1.313, allocations: 1.057 MB / 0.8541 GB, free: 32.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0018/1.314, allocations: 72.09 kB / 0.8542 GB, free: 32.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004791/1.319, allocations: 223.8 kB / 0.8544 GB, free: 32.19 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001185/1.32, allocations: 266.7 kB / 0.8546 GB, free: 31.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007477/1.321, allocations: 115.9 kB / 0.8548 GB, free: 31.81 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008702/1.33, allocations: 3.355 MB / 0.858 GB, free: 28.47 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.81e-07/1.33, allocations: 0 / 0.858 GB, free: 28.47 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0127/1.343, allocations: 2.315 MB / 0.8603 GB, free: 26.16 MB / 0.4948 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.001261/1.344, allocations: 257.2 kB / 0.8605 GB, free: 25.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01696/1.361, allocations: 7.648 MB / 0.868 GB, free: 18.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/1.361, allocations: 0 / 0.868 GB, free: 18.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008236/1.369, allocations: 3.561 MB / 0.8715 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01155/1.381, allocations: 1.221 MB / 0.8727 GB, free: 13.35 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2418/1.623, allocations: 28.07 MB / 0.9001 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009429/1.632, allocations: 7.446 MB / 0.9073 GB, free: 155.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006079/1.638, allocations: 2.165 MB / 0.9095 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/1.639, allocations: 413.5 kB / 0.9099 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of SimCode: time 5.41e-07/1.639, allocations: 3.391 kB / 0.9099 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.1154/1.755, allocations: 82 MB / 0.9899 GB, free: 90.06 MB / 0.4948 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","../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