Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.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.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation") translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009691/0.0009691, allocations: 195.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007649/0.000765, allocations: 99.56 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002113/0.0002113, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1927, allocations: 51.29 MB / 408.6 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08684/0.2795, allocations: 77.61 MB / 486.3 MB, free: 14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.2798, allocations: 59.98 kB / 486.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008197/0.288, allocations: 2.954 MB / 489.3 MB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.288, allocations: 0 / 489.3 MB, free: 10.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.846e-05/0.288, allocations: 8 kB / 489.3 MB, free: 10.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005927/0.2886, allocations: 474.5 kB / 489.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2887, allocations: 12.03 kB / 489.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.2889, allocations: 48.62 kB / 489.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.2892, allocations: 247.8 kB / 490 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.2892, allocations: 8.375 kB / 490.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.2893, allocations: 12.38 kB / 490.1 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.2896, allocations: 164.7 kB / 490.2 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.2896, allocations: 8.172 kB / 490.2 MB, free: 9.926 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2896, allocations: 7.938 kB / 490.2 MB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2896, allocations: 8 kB / 490.3 MB, free: 9.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.2898, allocations: 87.95 kB / 490.3 MB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009154/0.2908, allocations: 0.6488 MB / 491 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.291, allocations: 135.8 kB / 491.1 MB, free: 8.957 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.2911, allocations: 58.67 kB / 491.2 MB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.2912, allocations: 15.86 kB / 491.2 MB, free: 8.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.2912, allocations: 38.56 kB / 491.2 MB, free: 8.828 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.2912, allocations: 0 / 491.2 MB, free: 8.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004779/0.2917, allocations: 185.5 kB / 491.4 MB, free: 8.641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.2917, allocations: 110.8 kB / 491.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.292, allocations: 229 kB / 491.7 MB, free: 8.273 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.292, allocations: 29.7 kB / 491.8 MB, free: 8.238 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.582e-05/0.2921, allocations: 135.9 kB / 491.9 MB, free: 8.102 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.128e-05/0.2921, allocations: 39.36 kB / 491.9 MB, free: 8.062 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-06/0.2921, allocations: 8 kB / 492 MB, free: 8.055 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.2923, allocations: 330.8 kB / 492.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.2924, allocations: 47.97 kB / 492.3 MB, free: 7.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.2925, allocations: 98.73 kB / 492.4 MB, free: 7.555 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.2928, allocations: 154.7 kB / 492.6 MB, free: 7.379 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2928, allocations: 4 kB / 492.6 MB, free: 7.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003371/0.2931, allocations: 185.4 kB / 492.8 MB, free: 7.188 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2932, allocations: 8 kB / 492.8 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2932, allocations: 0 / 492.8 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2932, allocations: 4 kB / 492.8 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.2934, allocations: 39.97 kB / 492.8 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.2934, allocations: 7.984 kB / 492.8 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.2935, allocations: 27.67 kB / 492.8 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2935, allocations: 4 kB / 492.8 MB, free: 7.098 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001166/0.2936, allocations: 133.8 kB / 493 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.37e-05/0.2937, allocations: 27.73 kB / 493 MB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00039/0.2941, allocations: 190.7 kB / 493.2 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.2941, allocations: 8 kB / 493.2 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2941, allocations: 0 / 493.2 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2941, allocations: 0 / 493.2 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004343/0.2946, allocations: 269.4 kB / 493.5 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.2946, allocations: 3.938 kB / 493.5 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.2948, allocations: 43.91 kB / 493.5 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2948, allocations: 0 / 493.5 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.2948, allocations: 4 kB / 493.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2948, allocations: 0.5625 kB / 493.5 MB, free: 6.371 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2948, allocations: 4 kB / 493.5 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.2954, allocations: 492.9 kB / 494 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/0.2955, allocations: 100.8 kB / 494.1 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.2955, allocations: 12.19 kB / 494.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.2957, allocations: 8 kB / 494.1 MB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.2958, allocations: 11.98 kB / 494.1 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.2958, allocations: 7.984 kB / 494.1 MB, free: 5.715 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00015/0.2959, allocations: 168.5 kB / 494.3 MB, free: 5.547 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2959, allocations: 0 / 494.3 MB, free: 5.547 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003414/0.2963, allocations: 40.25 kB / 494.3 MB, free: 5.508 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.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 (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001754/0.2965, allocations: 111.7 kB / 494.4 MB, free: 5.387 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000281/0.2968, allocations: 111.9 kB / 494.6 MB, free: 5.277 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2968, allocations: 384 / 494.6 MB, free: 5.277 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.2969, allocations: 79.83 kB / 494.6 MB, free: 5.199 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.2973, allocations: 20.38 kB / 494.7 MB, free: 5.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.2984, allocations: 0.7606 MB / 495.4 MB, free: 4.375 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.2987, allocations: 0.74 MB / 496.2 MB, free: 3.609 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.93e-05/0.2988, allocations: 23.44 kB / 496.2 MB, free: 3.586 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2988, allocations: 0 / 496.2 MB, free: 3.586 MB / 362.7 MB Notification: Performance of Templates: time 0.003323/0.3021, allocations: 2.106 MB / 498.3 MB, free: 1.484 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches