Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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.001613/0.001613, allocations: 114.5 kB / 17.73 MB, free: 5.32 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.001901/0.001901, allocations: 187 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 51.92 kB / 328.6 MB, free: 3.23 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.086, allocations: 46.61 MB / 375.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2118/0.2978, allocations: 40.01 MB / 415.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02787/0.3258, allocations: 10.55 MB / 425.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01043/0.3362, allocations: 262.6 kB / 426 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02053/0.3569, allocations: 8.548 MB / 434.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01313/0.37, allocations: 3.634 MB / 438.2 MB, free: 388 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007498/0.3775, allocations: 2.394 MB / 440.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01792/0.3955, allocations: 13.43 MB / 454 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03698/0.4325, allocations: 25.36 MB / 479.4 MB, free: 6.996 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0113/0.4438, allocations: 7.067 MB / 486.4 MB, free: 15.91 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01248/0.4564, allocations: 8.055 MB / 494.5 MB, free: 7.828 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00561/0.462, allocations: 1.992 MB / 496.5 MB, free: 5.836 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007358/0.4694, allocations: 2.375 MB / 498.9 MB, free: 3.461 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005519/0.4749, allocations: 4.154 MB / 0.4912 GB, free: 15.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01276/0.4877, allocations: 7.832 MB / 0.4989 GB, free: 7.434 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02944/0.5172, allocations: 26.42 MB / 0.5247 GB, free: 12.93 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.5172, allocations: 0 / 0.5247 GB, free: 12.93 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5172, allocations: 0 / 0.5247 GB, free: 12.93 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007022/0.518, allocations: 0 / 0.5247 GB, free: 12.93 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04441/0.5624, allocations: 15.59 MB / 0.5399 GB, free: 13.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.5624, allocations: 8.031 kB / 0.5399 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05227/0.6147, allocations: 9.122 MB / 0.5488 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3754/0.9902, allocations: 7.5 MB / 0.5561 GB, free: 133.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008421/0.9911, allocations: 0.9409 MB / 0.5571 GB, free: 133.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004409/0.9955, allocations: 1.241 MB / 0.5583 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04597/1.041, allocations: 20.15 MB / 0.5779 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002974/1.042, allocations: 21 kB / 0.578 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001664/1.043, allocations: 0.5126 MB / 0.5785 GB, free: 124.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006482/1.044, allocations: 0.7384 MB / 0.5792 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03425/1.078, allocations: 18.98 MB / 0.5977 GB, free: 112.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09238/1.171, allocations: 62.64 MB / 0.6589 GB, free: 48.93 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03175/1.203, allocations: 56.98 MB / 0.7145 GB, free: 1.074 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006739/1.209, allocations: 4.093 MB / 0.7185 GB, free: 12.96 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01988/1.229, allocations: 11.34 MB / 0.7296 GB, free: 1.609 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.639e-05/1.229, allocations: 73.31 kB / 0.7297 GB, free: 1.527 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 4.879e-06/1.229, allocations: 0 / 0.7297 GB, free: 1.527 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2413/1.471, allocations: 18.14 MB / 0.7474 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/1.471, allocations: 92.39 kB / 0.7475 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009036/1.48, allocations: 5.466 MB / 0.7528 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008799/1.481, allocations: 87.2 kB / 0.7529 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003073/1.484, allocations: 5.886 MB / 0.7587 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001528/1.485, allocations: 1.372 MB / 0.76 GB, free: 160.4 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002319/1.488, allocations: 1.507 MB / 0.7615 GB, free: 159.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.794e-05/1.488, allocations: 301.7 kB / 0.7618 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004993/1.493, allocations: 3.083 MB / 0.7648 GB, free: 158.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006645/1.499, allocations: 6.756 MB / 0.7714 GB, free: 152.2 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/1.512, allocations: 10.59 MB / 0.7817 GB, free: 144 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002228/1.512, allocations: 35.84 kB / 0.7817 GB, free: 144 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01859/1.531, allocations: 10.79 MB / 0.7923 GB, free: 139.6 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/1.531, allocations: 64.09 kB / 0.7923 GB, free: 139.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/1.531, allocations: 127.1 kB / 0.7925 GB, free: 139.6 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002197/1.533, allocations: 0.9776 MB / 0.7934 GB, free: 139.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006187/1.54, allocations: 1.808 MB / 0.7952 GB, free: 139.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009744/1.549, allocations: 10.25 MB / 0.8052 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005837/1.555, allocations: 440.2 kB / 0.8056 GB, free: 132 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001123/1.556, allocations: 419.6 kB / 0.806 GB, free: 131.9 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006558/1.563, allocations: 4.453 MB / 0.8104 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/1.564, allocations: 0.5483 MB / 0.8109 GB, free: 129.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009403/1.574, allocations: 6.516 MB / 0.8173 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.229e-05/1.574, allocations: 40 kB / 0.8173 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/1.574, allocations: 8 kB / 0.8173 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.418e-05/1.574, allocations: 17.91 kB / 0.8173 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02287/1.597, allocations: 15.96 MB / 0.8329 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/1.597, allocations: 4 kB / 0.8329 GB, free: 111.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003015/1.6, allocations: 0.7556 MB / 0.8336 GB, free: 111.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001993/1.602, allocations: 0.7926 MB / 0.8344 GB, free: 110.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003131/1.602, allocations: 87.44 kB / 0.8345 GB, free: 110.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00832/1.61, allocations: 9.339 MB / 0.8436 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.61, allocations: 4 kB / 0.8436 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01225/1.623, allocations: 9.532 MB / 0.8529 GB, free: 90.76 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002208/1.625, allocations: 1.072 MB / 0.854 GB, free: 89.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000881/1.626, allocations: 75.91 kB / 0.8541 GB, free: 89.59 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002444/1.628, allocations: 215.8 kB / 0.8543 GB, free: 89.38 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005728/1.629, allocations: 266.7 kB / 0.8545 GB, free: 89.12 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002384/1.629, allocations: 116 kB / 0.8546 GB, free: 89 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005541/1.634, allocations: 3.599 MB / 0.8581 GB, free: 85.43 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.81e-07/1.635, allocations: 0 / 0.8581 GB, free: 85.43 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008083/1.643, allocations: 1.985 MB / 0.8601 GB, free: 83.45 MB / 0.5138 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001008/1.644, allocations: 262 kB / 0.8603 GB, free: 83.19 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01113/1.655, allocations: 8.07 MB / 0.8682 GB, free: 75.06 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.655, allocations: 1.422 kB / 0.8682 GB, free: 75.06 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004833/1.66, allocations: 3.534 MB / 0.8717 GB, free: 71.45 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005963/1.666, allocations: 1.324 MB / 0.873 GB, free: 70.14 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03271/1.698, allocations: 20.73 MB / 0.8932 GB, free: 49.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008342/1.707, allocations: 7.602 MB / 0.9006 GB, free: 41.75 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006299/1.713, allocations: 2.359 MB / 0.9029 GB, free: 39.38 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/1.715, allocations: 431.3 kB / 0.9033 GB, free: 38.96 MB / 0.5138 GB Notification: Performance of SimCode: time 2.515e-06/1.715, allocations: 3.938 kB / 0.9033 GB, free: 38.96 MB / 0.5138 GB Notification: Performance of Templates: time 0.3379/2.053, allocations: 73.81 MB / 0.9754 GB, free: 141.7 MB / 0.5138 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches