Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.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.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine") translateModel(Modelica.Blocks.Examples.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001146, allocations: 192.7 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008118/0.0008119, allocations: 91.2 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002536, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2769, allocations: 51.31 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.CompareSincExpSine): time 0.00145/0.2784, allocations: 1.202 MB / 409.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006153/0.279, allocations: 454.6 kB / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.666e-05/0.2791, allocations: 4 kB / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.2791, allocations: 3.984 kB / 409.7 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.929e-05/0.2792, allocations: 8.625 kB / 409.7 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001554/0.2794, allocations: 37.45 kB / 409.7 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.685e-05/0.2795, allocations: 59.72 kB / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.238e-05/0.2795, allocations: 4 kB / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.2797, allocations: 29.36 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.412e-05/0.2798, allocations: 35.83 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.2798, allocations: 0 / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.024e-05/0.2799, allocations: 15.98 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.287e-05/0.2799, allocations: 1.219 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.735e-05/0.28, allocations: 53.56 kB / 409.9 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.384e-05/0.2801, allocations: 39.92 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2801, allocations: 0.5312 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2801, allocations: 0.6875 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.2801, allocations: 3.938 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.00056/0.2807, allocations: 408.8 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2807, allocations: 8.031 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002964/0.281, allocations: 43.84 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.2811, allocations: 172.2 kB / 410.6 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.2812, allocations: 384 / 410.6 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.2812, allocations: 4.359 kB / 410.6 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.2814, allocations: 100.5 kB / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.2814, allocations: 0 / 410.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.2815, allocations: 4 kB / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2815, allocations: 0 / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.2817, allocations: 79.88 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.2819, allocations: 183.5 kB / 411 MB, free: 24.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.2821, allocations: 119.7 kB / 411.1 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.2822, allocations: 54.61 kB / 411.1 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.2823, allocations: 3.984 kB / 411.1 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.2823, allocations: 42.44 kB / 411.2 MB, free: 24.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.2823, allocations: 4 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004782/0.2828, allocations: 165.6 kB / 411.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.2828, allocations: 106.8 kB / 411.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.599e-05/0.2829, allocations: 129.5 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.2829, allocations: 25.7 kB / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.673e-05/0.283, allocations: 92.33 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.283, allocations: 15.8 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.367e-06/0.283, allocations: 4 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.164e-05/0.2831, allocations: 318.8 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.2832, allocations: 35.97 kB / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.2833, allocations: 62.53 kB / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.2836, allocations: 98.52 kB / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2836, allocations: 0 / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002932/0.2839, allocations: 121.5 kB / 412.3 MB, free: 23.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.2839, allocations: 11.92 kB / 412.3 MB, free: 23.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.2839, allocations: 8.031 kB / 412.3 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.2839, allocations: 4 kB / 412.4 MB, free: 23.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.2841, allocations: 19.98 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2841, allocations: 0 / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.99e-05/0.2842, allocations: 19.92 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.2842, allocations: 4 kB / 412.4 MB, free: 23.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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 6.097e-05/0.2843, allocations: 121.8 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.2843, allocations: 11.84 kB / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.896e-05/0.2843, allocations: 11.88 kB / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2844, allocations: 0 / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2844, allocations: 3.938 kB / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2844, allocations: 0 / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.447e-05/0.2845, allocations: 177.6 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2845, allocations: 0 / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.2846, allocations: 27.97 kB / 412.7 MB, free: 22.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2846, allocations: 7.938 kB / 412.7 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.2846, allocations: 0 / 412.7 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2846, allocations: 3.938 kB / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2846, allocations: 0 / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.2849, allocations: 162.7 kB / 412.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.589e-05/0.285, allocations: 85.05 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.285, allocations: 4 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.2851, allocations: 20.12 kB / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.2851, allocations: 11.97 kB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.2852, allocations: 0 / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.126e-05/0.2852, allocations: 99.27 kB / 413.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2852, allocations: 3.938 kB / 413.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001857/0.2854, allocations: 8 kB / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (4): * Single equations (assignments): 4 * 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.000117/0.2855, allocations: 95.25 kB / 413.2 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003105/0.2858, allocations: 88.05 kB / 413.3 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2859, allocations: 4 kB / 413.3 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.286, allocations: 47.91 kB / 413.4 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001692/0.2862, allocations: 11.44 kB / 413.4 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004568/0.2866, allocations: 249.7 kB / 413.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001071/0.2868, allocations: 0.6848 MB / 414.3 MB, free: 20.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.2868, allocations: 15.42 kB / 414.3 MB, free: 20.93 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2868, allocations: 0 / 414.3 MB, free: 20.93 MB / 298.7 MB Notification: Performance of Templates: time 0.001945/0.2888, allocations: 0.8575 MB / 415.2 MB, free: 20.08 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/CompareSincExpSine/CompareSincExpSine.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.CompareSincExpSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches