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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.637/1.637, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 109.1 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008028/0.0008029, allocations: 43.88 kB / 350.1 MB, free: 56 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1986/0.1994, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02882/0.2282, allocations: 38.71 MB / 438.2 MB, free: 10.51 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02193/0.2502, allocations: 10.29 MB / 448.5 MB, free: 188 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00822/0.2585, allocations: 291.1 kB / 448.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01897/0.2775, allocations: 7.986 MB / 456.8 MB, free: 7.895 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01019/0.2877, allocations: 3.083 MB / 459.9 MB, free: 4.801 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006572/0.2943, allocations: 2.167 MB / 462 MB, free: 2.637 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01539/0.3097, allocations: 13.13 MB / 475.2 MB, free: 5.461 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03363/0.3434, allocations: 20.56 MB / 495.7 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009814/0.3532, allocations: 5.907 MB / 0.4899 GB, free: 10.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01231/0.3656, allocations: 7.368 MB / 0.4971 GB, free: 3.441 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00475/0.3704, allocations: 1.301 MB / 0.4983 GB, free: 2.141 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00641/0.3768, allocations: 1.687 MB / 0.5 GB, free: 464 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1877/0.5646, allocations: 3.276 MB / 0.5032 GB, free: 32.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01012/0.5747, allocations: 6.865 MB / 0.5099 GB, free: 31.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02263/0.5974, allocations: 25.24 MB / 0.5345 GB, free: 23.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.5974, allocations: 0 / 0.5345 GB, free: 23.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5974, allocations: 0 / 0.5345 GB, free: 23.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006453/0.5981, allocations: 0 / 0.5345 GB, free: 23.75 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.0528/0.6509, allocations: 15.03 MB / 0.5492 GB, free: 14.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/0.651, allocations: 7.781 kB / 0.5492 GB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06476/0.7158, allocations: 6.13 MB / 0.5552 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02533/0.7411, allocations: 7.783 MB / 0.5628 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009751/0.7422, allocations: 0.9099 MB / 0.5637 GB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004462/0.7466, allocations: 1.203 MB / 0.5649 GB, free: 3.172 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0483/0.7949, allocations: 18.66 MB / 0.5831 GB, free: 472 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005034/0.7955, allocations: 19.81 kB / 0.5831 GB, free: 452 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003905/0.7994, allocations: 0.4924 MB / 0.5836 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000642/0.8001, allocations: 0.6382 MB / 0.5842 GB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03683/0.8369, allocations: 16.76 MB / 0.6006 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1029/0.9399, allocations: 58.86 MB / 0.6581 GB, free: 3.324 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2003/1.14, allocations: 32.9 MB / 0.6902 GB, free: 151.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006795/1.147, allocations: 3.728 MB / 0.6938 GB, free: 151.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01747/1.165, allocations: 8.666 MB / 0.7023 GB, free: 150.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/1.165, allocations: 69.97 kB / 0.7023 GB, free: 150.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=349): time 5.1e-06/1.165, allocations: 2.844 kB / 0.7024 GB, free: 150.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=389): time 0.0296/1.194, allocations: 17.54 MB / 0.7195 GB, free: 143.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/1.194, allocations: 93.53 kB / 0.7196 GB, free: 143.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006123/1.2, allocations: 5.021 MB / 0.7245 GB, free: 141.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004609/1.201, allocations: 88.73 kB / 0.7246 GB, free: 141.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002219/1.203, allocations: 5.441 MB / 0.7299 GB, free: 137.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009212/1.204, allocations: 1.356 MB / 0.7312 GB, free: 136.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001804/1.206, allocations: 1.316 MB / 0.7325 GB, free: 135.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.203e-05/1.206, allocations: 301.1 kB / 0.7328 GB, free: 135.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003999/1.21, allocations: 2.911 MB / 0.7356 GB, free: 133.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004752/1.215, allocations: 5.874 MB / 0.7413 GB, free: 126.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008134/1.223, allocations: 9.437 MB / 0.7506 GB, free: 116.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.211e-05/1.223, allocations: 28 kB / 0.7506 GB, free: 116.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01307/1.236, allocations: 9.845 MB / 0.7602 GB, free: 107.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.53e-05/1.236, allocations: 51.94 kB / 0.7603 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/1.236, allocations: 100 kB / 0.7604 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002136/1.238, allocations: 0.9343 MB / 0.7613 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00515/1.243, allocations: 1.584 MB / 0.7628 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008888/1.252, allocations: 9.486 MB / 0.7721 GB, free: 94.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005072/1.258, allocations: 399.2 kB / 0.7725 GB, free: 94.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/1.259, allocations: 359.7 kB / 0.7728 GB, free: 94.17 MB / 490.7 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.00763/1.266, allocations: 4.253 MB / 0.777 GB, free: 89.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/1.267, allocations: 0.5132 MB / 0.7775 GB, free: 89.38 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009584/1.277, allocations: 6.484 MB / 0.7838 GB, free: 82.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/1.277, allocations: 44 kB / 0.7838 GB, free: 82.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/1.277, allocations: 8 kB / 0.7838 GB, free: 82.81 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-05/1.277, allocations: 19.92 kB / 0.7839 GB, free: 82.79 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02707/1.304, allocations: 15.71 MB / 0.7992 GB, free: 67.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/1.304, allocations: 4 kB / 0.7992 GB, free: 67.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003414/1.308, allocations: 0.745 MB / 0.7999 GB, free: 66.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002191/1.31, allocations: 0.7918 MB / 0.8007 GB, free: 65.48 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007324/1.311, allocations: 83.98 kB / 0.8008 GB, free: 65.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008687/1.319, allocations: 8.673 MB / 0.8093 GB, free: 56.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.319, allocations: 7.938 kB / 0.8093 GB, free: 56.32 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05271/1.372, allocations: 34.87 MB / 0.8433 GB, free: 20.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003828/1.376, allocations: 1.053 MB / 0.8443 GB, free: 19.68 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00129/1.377, allocations: 71.91 kB / 0.8444 GB, free: 19.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00269/1.38, allocations: 227.8 kB / 0.8446 GB, free: 19.39 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005599/1.38, allocations: 262.8 kB / 0.8449 GB, free: 19.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002508/1.381, allocations: 116 kB / 0.845 GB, free: 19.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006131/1.387, allocations: 3.35 MB / 0.8483 GB, free: 15.68 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.387, allocations: 0 / 0.8483 GB, free: 15.68 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009584/1.396, allocations: 2.292 MB / 0.8505 GB, free: 13.39 MB / 490.7 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.0009558/1.397, allocations: 270 kB / 0.8508 GB, free: 13.13 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/1.408, allocations: 7.643 MB / 0.8582 GB, free: 5.41 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.408, allocations: 1 kB / 0.8582 GB, free: 5.41 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005524/1.414, allocations: 3.551 MB / 0.8617 GB, free: 1.773 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008209/1.422, allocations: 1.219 MB / 0.8629 GB, free: 0.5781 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2339/1.656, allocations: 28.03 MB / 0.8903 GB, free: 147 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008972/1.665, allocations: 7.443 MB / 0.8975 GB, free: 145.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007677/1.673, allocations: 2.164 MB / 0.8996 GB, free: 145.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001779/1.675, allocations: 411 kB / 0.9 GB, free: 145.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.062e-06/1.675, allocations: 0 / 0.9 GB, free: 145.7 MB / 490.7 MB Notification: Performance of Templates: time 0.1201/1.795, allocations: 81.64 MB / 0.9797 GB, free: 70.68 MB / 490.7 MB 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/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_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