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.001198/0.001198, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001192/0.001192, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.301/1.301, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001268/0.001268, allocations: 43.94 kB / 282.1 MB, free: 2.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08391/0.08519, allocations: 46.62 MB / 328.7 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04004/0.1253, allocations: 40.02 MB / 368.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02176/0.1471, allocations: 10.56 MB / 379.3 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008364/0.1555, allocations: 259.1 kB / 379.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1784/0.3339, allocations: 8.535 MB / 388.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01293/0.3469, allocations: 3.635 MB / 391.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007095/0.354, allocations: 2.388 MB / 394.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01743/0.3714, allocations: 13.42 MB / 407.6 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03185/0.4033, allocations: 25.35 MB / 432.9 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01161/0.415, allocations: 7.033 MB / 439.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01308/0.4281, allocations: 8.053 MB / 448 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005122/0.4333, allocations: 1.988 MB / 450 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008728/0.442, allocations: 2.384 MB / 452.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006475/0.4485, allocations: 4.159 MB / 456.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01472/0.4633, allocations: 7.831 MB / 464.4 MB, free: 6.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0294/0.4927, allocations: 26.42 MB / 490.8 MB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4928, allocations: 0 / 490.8 MB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4928, allocations: 4 kB / 490.8 MB, free: 12.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006582/0.4934, allocations: 0 / 490.8 MB, free: 12.35 MB / 398.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.045/0.5384, allocations: 15.59 MB / 0.4945 GB, free: 12.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.5385, allocations: 12.03 kB / 0.4945 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05048/0.589, allocations: 9.111 MB / 0.5034 GB, free: 3.703 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01741/0.6064, allocations: 7.511 MB / 0.5107 GB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009392/0.6074, allocations: 0.9418 MB / 0.5117 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004502/0.6119, allocations: 1.245 MB / 0.5129 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04799/0.6599, allocations: 20.15 MB / 0.5326 GB, free: 5.832 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004365/0.6604, allocations: 23.8 kB / 0.5326 GB, free: 5.809 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003913/0.6643, allocations: 0.5103 MB / 0.5331 GB, free: 5.312 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007599/0.6651, allocations: 0.7332 MB / 0.5338 GB, free: 4.578 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3384/1.003, allocations: 18.98 MB / 0.5523 GB, free: 136.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09945/1.103, allocations: 62.64 MB / 0.6135 GB, free: 88.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02811/1.131, allocations: 56.99 MB / 0.6692 GB, free: 24.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005851/1.137, allocations: 4.124 MB / 0.6732 GB, free: 20.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02024/1.157, allocations: 11.34 MB / 0.6843 GB, free: 9.363 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/1.157, allocations: 81.23 kB / 0.6843 GB, free: 9.273 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.581e-06/1.157, allocations: 3.25 kB / 0.6843 GB, free: 9.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03796/1.195, allocations: 18.11 MB / 0.702 GB, free: 7.031 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/1.195, allocations: 90.47 kB / 0.7021 GB, free: 6.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01004/1.205, allocations: 5.462 MB / 0.7075 GB, free: 1.492 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005863/1.206, allocations: 89.7 kB / 0.7075 GB, free: 1.398 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1814/1.387, allocations: 5.881 MB / 0.7133 GB, free: 145.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001546/1.389, allocations: 1.372 MB / 0.7146 GB, free: 144.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002482/1.391, allocations: 1.512 MB / 0.7161 GB, free: 144.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.825e-05/1.392, allocations: 301.1 kB / 0.7164 GB, free: 144.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004608/1.396, allocations: 3.081 MB / 0.7194 GB, free: 143.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006388/1.403, allocations: 6.756 MB / 0.726 GB, free: 137.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01071/1.413, allocations: 10.6 MB / 0.7363 GB, free: 129.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001955/1.414, allocations: 35.66 kB / 0.7364 GB, free: 129.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01614/1.43, allocations: 10.79 MB / 0.7469 GB, free: 125.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.038e-05/1.43, allocations: 59.78 kB / 0.747 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002059/1.43, allocations: 123.9 kB / 0.7471 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/1.432, allocations: 0.9687 MB / 0.748 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006108/1.439, allocations: 1.825 MB / 0.7498 GB, free: 124.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/1.449, allocations: 10.24 MB / 0.7598 GB, free: 117.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006539/1.455, allocations: 445.8 kB / 0.7602 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001804/1.457, allocations: 419.9 kB / 0.7606 GB, free: 117.5 MB / 462.1 MB 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.009745/1.467, allocations: 4.454 MB / 0.765 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002075/1.469, allocations: 0.5473 MB / 0.7655 GB, free: 115 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01302/1.482, allocations: 6.515 MB / 0.7719 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-05/1.482, allocations: 40 kB / 0.7719 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.899e-05/1.482, allocations: 12.66 kB / 0.7719 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-05/1.482, allocations: 18.52 kB / 0.772 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03238/1.515, allocations: 15.94 MB / 0.7875 GB, free: 95.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/1.515, allocations: 4.375 kB / 0.7875 GB, free: 95.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003357/1.518, allocations: 0.7528 MB / 0.7883 GB, free: 95.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002088/1.52, allocations: 0.7923 MB / 0.789 GB, free: 94.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005772/1.521, allocations: 83.97 kB / 0.7891 GB, free: 94.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009017/1.53, allocations: 9.352 MB / 0.7983 GB, free: 84.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.53, allocations: 4 kB / 0.7983 GB, free: 84.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/1.545, allocations: 9.53 MB / 0.8076 GB, free: 74.74 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003526/1.549, allocations: 1.076 MB / 0.8086 GB, free: 73.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001885/1.551, allocations: 79.94 kB / 0.8087 GB, free: 73.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003479/1.554, allocations: 215.8 kB / 0.8089 GB, free: 73.35 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008252/1.555, allocations: 266.8 kB / 0.8092 GB, free: 73.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004759/1.556, allocations: 119.9 kB / 0.8093 GB, free: 72.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006245/1.562, allocations: 3.602 MB / 0.8128 GB, free: 69.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.562, allocations: 0 / 0.8128 GB, free: 69.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009011/1.571, allocations: 1.978 MB / 0.8147 GB, free: 67.42 MB / 462.1 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%), (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.001076/1.572, allocations: 252.4 kB / 0.815 GB, free: 67.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01316/1.585, allocations: 8.07 MB / 0.8228 GB, free: 59.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/1.585, allocations: 0 / 0.8228 GB, free: 59.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005464/1.591, allocations: 3.545 MB / 0.8263 GB, free: 55.42 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007412/1.598, allocations: 1.306 MB / 0.8276 GB, free: 54.13 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0431/1.641, allocations: 20.73 MB / 0.8478 GB, free: 33.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0162/1.657, allocations: 7.594 MB / 0.8552 GB, free: 25.73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.009251/1.667, allocations: 2.355 MB / 0.8575 GB, free: 23.37 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002129/1.669, allocations: 435.3 kB / 0.858 GB, free: 22.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.763e-06/1.669, allocations: 0 / 0.858 GB, free: 22.95 MB / 462.1 MB Notification: Performance of Templates: time 0.2817/1.951, allocations: 70.96 MB / 0.9273 GB, free: 107.6 MB / 462.1 MB 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 -s gbode -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/jenkins1/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/jenkins1/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