Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001617/0.001617, allocations: 177.2 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008208/0.0008212, allocations: 85 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002931, allocations: 8 kB / 327 MB, free: 176 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2793, allocations: 47.58 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03089/0.3103, allocations: 34.95 MB / 409.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02414/0.3345, allocations: 9.795 MB / 419.3 MB, free: 3.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007054/0.3416, allocations: 247.1 kB / 419.6 MB, free: 3.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005101/0.3467, allocations: 1.677 MB / 421.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0101/0.3569, allocations: 3.008 MB / 424.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005678/0.3626, allocations: 1.559 MB / 425.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01844/0.381, allocations: 14.37 MB / 440.2 MB, free: 15.06 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03938/0.4204, allocations: 19.96 MB / 460.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008883/0.4294, allocations: 5.01 MB / 465.2 MB, free: 5.961 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01039/0.4398, allocations: 5.969 MB / 471.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003408/0.4433, allocations: 0.7734 MB / 471.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006182/0.4495, allocations: 1.132 MB / 473 MB, free: 14.06 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004823/0.4543, allocations: 2.632 MB / 475.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005724/0.4601, allocations: 2.593 MB / 478.3 MB, free: 8.816 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02575/0.4859, allocations: 22.1 MB / 0.4886 GB, free: 2.652 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4859, allocations: 0 / 0.4886 GB, free: 2.652 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4859, allocations: 0 / 0.4886 GB, free: 2.652 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009456/0.4869, allocations: 4 kB / 0.4886 GB, free: 2.648 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.3154/0.8023, allocations: 12.97 MB / 0.5013 GB, free: 90.36 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.8024, allocations: 9.438 kB / 0.5013 GB, free: 90.36 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04251/0.8449, allocations: 9.141 MB / 0.5102 GB, free: 85.21 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01339/0.8583, allocations: 7.356 MB / 0.5174 GB, free: 77.84 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006291/0.859, allocations: 0.9501 MB / 0.5184 GB, free: 76.9 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003579/0.8626, allocations: 1.249 MB / 0.5196 GB, free: 75.66 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04687/0.9095, allocations: 20.06 MB / 0.5392 GB, free: 55.57 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008048/0.9103, allocations: 23.75 kB / 0.5392 GB, free: 55.55 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005419/0.9158, allocations: 0.5073 MB / 0.5397 GB, free: 55.05 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007994/0.9166, allocations: 0.7294 MB / 0.5404 GB, free: 54.32 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04319/0.9598, allocations: 18.87 MB / 0.5588 GB, free: 35.44 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1298/1.09, allocations: 63.57 MB / 0.6209 GB, free: 2.578 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3517/1.441, allocations: 56.92 MB / 0.6765 GB, free: 140.5 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009363/1.451, allocations: 4.109 MB / 0.6805 GB, free: 140.3 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02894/1.48, allocations: 11.4 MB / 0.6916 GB, free: 135.1 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.921e-05/1.48, allocations: 70.69 kB / 0.6917 GB, free: 135.1 MB / 458.8 MB Notification: Performance of pre-optimization done (n=349): time 7.654e-06/1.48, allocations: 0 / 0.6917 GB, free: 135.1 MB / 458.8 MB Notification: Performance of matching and sorting (n=389): time 0.04322/1.523, allocations: 19.09 MB / 0.7103 GB, free: 127.4 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/1.523, allocations: 91.59 kB / 0.7104 GB, free: 127.4 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009047/1.533, allocations: 5.42 MB / 0.7157 GB, free: 125 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005731/1.533, allocations: 85.7 kB / 0.7158 GB, free: 124.9 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003382/1.536, allocations: 5.889 MB / 0.7216 GB, free: 119.7 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/1.538, allocations: 1.369 MB / 0.7229 GB, free: 118.5 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003389/1.538, allocations: 159.9 kB / 0.723 GB, free: 118.3 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003828/1.539, allocations: 0.6129 MB / 0.7236 GB, free: 117.8 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004305/1.543, allocations: 3.056 MB / 0.7266 GB, free: 114.8 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005808/1.549, allocations: 6.723 MB / 0.7332 GB, free: 106.3 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005687/1.554, allocations: 4.565 MB / 0.7377 GB, free: 101.8 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.426e-05/1.555, allocations: 36 kB / 0.7377 GB, free: 101.7 MB / 458.8 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01638/1.571, allocations: 10.73 MB / 0.7482 GB, free: 90.93 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.106e-05/1.571, allocations: 60 kB / 0.7482 GB, free: 90.87 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/1.571, allocations: 124 kB / 0.7483 GB, free: 90.75 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002249/1.573, allocations: 0.9888 MB / 0.7493 GB, free: 89.74 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005263/1.579, allocations: 1.817 MB / 0.7511 GB, free: 87.92 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009341/1.588, allocations: 9.532 MB / 0.7604 GB, free: 77.99 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005684/1.594, allocations: 447.2 kB / 0.7608 GB, free: 77.55 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005379/1.594, allocations: 422.4 kB / 0.7612 GB, free: 77.14 MB / 458.8 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007724/1.602, allocations: 4.451 MB / 0.7656 GB, free: 72.68 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/1.603, allocations: 0.544 MB / 0.7661 GB, free: 72.13 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009312/1.612, allocations: 6.525 MB / 0.7725 GB, free: 65.56 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.32e-05/1.612, allocations: 36 kB / 0.7725 GB, free: 65.52 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/1.612, allocations: 11.75 kB / 0.7725 GB, free: 65.52 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.187e-05/1.613, allocations: 23.92 kB / 0.7725 GB, free: 65.49 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02622/1.639, allocations: 15.94 MB / 0.7881 GB, free: 49.52 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/1.639, allocations: 3.938 kB / 0.7881 GB, free: 49.52 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003005/1.642, allocations: 0.7571 MB / 0.7889 GB, free: 48.76 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002041/1.644, allocations: 0.7923 MB / 0.7896 GB, free: 47.95 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002387/1.644, allocations: 79.98 kB / 0.7897 GB, free: 47.87 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008423/1.653, allocations: 8.66 MB / 0.7982 GB, free: 38.81 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.728e-06/1.653, allocations: 4.25 kB / 0.7982 GB, free: 38.8 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01314/1.666, allocations: 9.497 MB / 0.8074 GB, free: 29.2 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003537/1.669, allocations: 1.099 MB / 0.8085 GB, free: 28.07 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008743/1.67, allocations: 68 kB / 0.8086 GB, free: 28.01 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002297/1.673, allocations: 231.7 kB / 0.8088 GB, free: 27.78 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005426/1.673, allocations: 262.8 kB / 0.809 GB, free: 27.52 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/1.673, allocations: 116 kB / 0.8092 GB, free: 27.41 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.005824/1.679, allocations: 3.552 MB / 0.8126 GB, free: 23.88 MB / 458.8 MB Notification: Performance of sort global known variables: time 2.2e-07/1.679, allocations: 0 / 0.8126 GB, free: 23.88 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009889/1.689, allocations: 1.984 MB / 0.8146 GB, free: 21.9 MB / 458.8 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009042/1.69, allocations: 256.2 kB / 0.8148 GB, free: 21.65 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01378/1.704, allocations: 8.009 MB / 0.8226 GB, free: 13.56 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/1.704, allocations: 4 kB / 0.8226 GB, free: 13.56 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006971/1.711, allocations: 3.539 MB / 0.8261 GB, free: 9.941 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01298/1.724, allocations: 1.25 MB / 0.8273 GB, free: 8.715 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3994/2.123, allocations: 24.86 MB / 0.8516 GB, free: 136.4 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01307/2.137, allocations: 7.364 MB / 0.8588 GB, free: 134.4 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003453/2.14, allocations: 0.4899 MB / 0.8593 GB, free: 134.4 MB / 458.8 MB Notification: Performance of SimCode: time 2.565e-06/2.14, allocations: 0 / 0.8593 GB, free: 134.4 MB / 458.8 MB Notification: Performance of Templates: time 1.357/3.497, allocations: 475.7 MB / 1.324 GB, free: 22.23 MB / 474.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches