Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009157/0.0009157, allocations: 195.6 kB / 17.38 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 226.6 MB / 244.7 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007611/0.0007611, allocations: 99.42 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002048/0.0002048, allocations: 4 kB / 356.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.194, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007417/0.2015, allocations: 9.649 MB / 417.7 MB, free: 18.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006432/0.208, allocations: 3.456 MB / 421.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.2091, allocations: 63.69 kB / 421.2 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.2104, allocations: 0.6523 MB / 421.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001704/0.2121, allocations: 0.738 MB / 422.6 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007135/0.2128, allocations: 299.5 kB / 422.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002366/0.2152, allocations: 2.993 MB / 425.9 MB, free: 9.816 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002026/0.2172, allocations: 2.295 MB / 428.2 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001187/0.2184, allocations: 1.015 MB / 429.2 MB, free: 6.438 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.2197, allocations: 1.405 MB / 430.6 MB, free: 5.027 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002393/0.22, allocations: 152 kB / 430.8 MB, free: 4.879 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005537/0.2205, allocations: 259.8 kB / 431 MB, free: 4.625 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005821/0.2211, allocations: 0.8022 MB / 431.8 MB, free: 3.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009376/0.2221, allocations: 1.331 MB / 433.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002546/0.2246, allocations: 3.931 MB / 437.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2247, allocations: 0 / 437.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2247, allocations: 0 / 437.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.476e-05/0.2247, allocations: 0 / 437.1 MB, free: 14.54 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005051/0.2298, allocations: 2.864 MB / 439.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.2298, allocations: 8.031 kB / 440 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009698/0.2308, allocations: 349 kB / 440.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00289/0.2337, allocations: 1.776 MB / 442.1 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.2339, allocations: 197.3 kB / 442.3 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003435/0.2343, allocations: 255.9 kB / 442.5 MB, free: 8.977 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005185/0.2395, allocations: 3.264 MB / 445.8 MB, free: 5.633 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.21e-05/0.2395, allocations: 7.906 kB / 445.8 MB, free: 5.625 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002281/0.2398, allocations: 100 kB / 445.9 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.2399, allocations: 124.9 kB / 446 MB, free: 5.402 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004574/0.2445, allocations: 2.732 MB / 448.7 MB, free: 2.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01489/0.2594, allocations: 10.53 MB / 459.3 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.2612, allocations: 1.354 MB / 460.6 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.2624, allocations: 0.7925 MB / 461.4 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002893/0.2627, allocations: 207.2 kB / 461.6 MB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.2627, allocations: 43.56 kB / 461.7 MB, free: 5.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 2.705e-06/0.2628, allocations: 0 / 461.7 MB, free: 5.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.01425/0.277, allocations: 6.944 MB / 468.6 MB, free: 14.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/0.2771, allocations: 64.41 kB / 468.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002875/0.28, allocations: 1.778 MB / 470.4 MB, free: 12.33 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.696e-05/0.2801, allocations: 49.64 kB / 470.5 MB, free: 12.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009702/0.2811, allocations: 1.275 MB / 471.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/0.2815, allocations: 433.8 kB / 472.2 MB, free: 10.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.2816, allocations: 28 kB / 472.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.2818, allocations: 377.8 kB / 472.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.2832, allocations: 0.7613 MB / 473.3 MB, free: 9.395 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.2848, allocations: 1.296 MB / 474.6 MB, free: 7.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002846/0.2877, allocations: 2.206 MB / 476.8 MB, free: 5.438 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.2877, allocations: 4 kB / 476.9 MB, free: 5.434 MB / 346.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003923/0.2916, allocations: 2.462 MB / 479.3 MB, free: 2.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.2917, allocations: 12 kB / 479.3 MB, free: 2.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.2917, allocations: 16 kB / 479.3 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006105/0.2923, allocations: 247.6 kB / 479.6 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.2938, allocations: 415.3 kB / 480 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00244/0.2962, allocations: 3.009 MB / 483 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.2974, allocations: 123.8 kB / 483.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.2976, allocations: 71.98 kB / 483.2 MB, free: 14.79 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0014/0.299, allocations: 0.8174 MB / 484 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/0.2993, allocations: 189.6 kB / 484.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003348/0.3027, allocations: 2.039 MB / 486.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.3027, allocations: 16 kB / 486.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3027, allocations: 0 / 486.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.3027, allocations: 3.984 kB / 486.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007585/0.3103, allocations: 4.771 MB / 491 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.3104, allocations: 0 / 491 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.3115, allocations: 263.6 kB / 491.3 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005264/0.312, allocations: 203.5 kB / 491.5 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.023e-05/0.3121, allocations: 31.98 kB / 491.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.3145, allocations: 2.975 MB / 494.5 MB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.882e-06/0.3145, allocations: 4 kB / 494.5 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004543/0.319, allocations: 3.126 MB / 497.6 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009482/0.32, allocations: 438.6 kB / 498 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003455/0.3204, allocations: 27.94 kB / 498.1 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009709/0.3213, allocations: 99.8 kB / 498.2 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.3215, allocations: 80.95 kB / 498.2 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.3216, allocations: 32 kB / 498.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002026/0.3236, allocations: 1.212 MB / 499.5 MB, free: 14.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3236, allocations: 0 / 499.5 MB, free: 14.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001625/0.3253, allocations: 492 kB / 500 MB, free: 13.53 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004177/0.3257, allocations: 187 kB / 0.4884 GB, free: 13.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003647/0.3293, allocations: 2.333 MB / 0.4907 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3294, allocations: 1.812 kB / 0.4907 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.3313, allocations: 1.35 MB / 0.492 GB, free: 9.512 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/0.3339, allocations: 477.4 kB / 0.4925 GB, free: 9.055 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008195/0.3421, allocations: 5.857 MB / 0.4982 GB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00164/0.3438, allocations: 1.974 MB / 0.5001 GB, free: 1.121 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005535/0.3443, allocations: 151.4 kB / 0.5003 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3444, allocations: 0 / 0.5003 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of Templates: time 0.2443/0.5887, allocations: 82.25 MB / 0.5806 GB, free: 18.72 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches