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.00145/0.00145, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 226.6 MB / 244.4 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007765/0.0007765, allocations: 107.1 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002204/0.0002203, allocations: 8 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2049, allocations: 51.3 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.CompareSincExpSine): time 0.001229/0.2062, allocations: 1.198 MB / 408.7 MB, free: 26.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005424/0.2067, allocations: 450 kB / 409.1 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.031e-05/0.2068, allocations: 0 / 409.1 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.83e-05/0.2068, allocations: 3.984 kB / 409.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.645e-05/0.2069, allocations: 13.08 kB / 409.1 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.207, allocations: 31.91 kB / 409.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.375e-05/0.2071, allocations: 51.78 kB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.516e-05/0.2072, allocations: 6.312 kB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.2073, allocations: 39.84 kB / 409.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.969e-05/0.2074, allocations: 31.84 kB / 409.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.384e-05/0.2074, allocations: 0 / 409.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.428e-05/0.2075, allocations: 12.73 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.117e-05/0.2075, allocations: 7.984 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.161e-05/0.2075, allocations: 42.5 kB / 409.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.65e-05/0.2076, allocations: 31.95 kB / 409.4 MB, free: 25.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.2076, allocations: 9.891 kB / 409.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2076, allocations: 0 / 409.4 MB, free: 25.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.2077, allocations: 0 / 409.4 MB, free: 25.93 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.0005579/0.2082, allocations: 395.6 kB / 409.8 MB, free: 25.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2083, allocations: 8.031 kB / 409.8 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002854/0.2085, allocations: 40.88 kB / 409.8 MB, free: 25.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.415e-05/0.2086, allocations: 175.8 kB / 410 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.2087, allocations: 4 kB / 410 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.2087, allocations: 7.953 kB / 410 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.2089, allocations: 104.1 kB / 410.1 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-06/0.2089, allocations: 0 / 410.1 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.2089, allocations: 4 kB / 410.1 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.2089, allocations: 0 / 410.1 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00025/0.2092, allocations: 79.92 kB / 410.2 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.2093, allocations: 191.4 kB / 410.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.2096, allocations: 107.8 kB / 410.5 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.2097, allocations: 62.55 kB / 410.6 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.2097, allocations: 0 / 410.6 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.596e-05/0.2098, allocations: 34.52 kB / 410.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.2098, allocations: 0 / 410.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004917/0.2103, allocations: 161.9 kB / 410.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.2103, allocations: 114.8 kB / 410.9 MB, free: 24.24 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.396e-05/0.2104, allocations: 133.2 kB / 411 MB, free: 24.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.719e-06/0.2104, allocations: 25.7 kB / 411 MB, free: 24.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.408e-05/0.2104, allocations: 88.12 kB / 411.1 MB, free: 23.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.2105, allocations: 15.81 kB / 411.1 MB, free: 23.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-06/0.2105, allocations: 0 / 411.1 MB, free: 23.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.405e-05/0.2105, allocations: 314.8 kB / 411.4 MB, free: 23.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.2107, allocations: 43.95 kB / 411.5 MB, free: 23.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.2108, allocations: 58.55 kB / 411.5 MB, free: 23.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.2109, allocations: 35.97 kB / 411.6 MB, free: 23.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2109, allocations: 4 kB / 411.6 MB, free: 23.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000301/0.2113, allocations: 129.5 kB / 411.7 MB, free: 23.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.2113, allocations: 7.953 kB / 411.7 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.2113, allocations: 4.094 kB / 411.7 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2113, allocations: 4 kB / 411.7 MB, free: 23.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.2114, allocations: 23.92 kB / 411.7 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2115, allocations: 3.984 kB / 411.7 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.469e-05/0.2116, allocations: 12 kB / 411.7 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.2116, allocations: 11.92 kB / 411.8 MB, free: 23.3 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 5.46e-05/0.2116, allocations: 121.8 kB / 411.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.545e-05/0.2117, allocations: 7.906 kB / 411.9 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.416e-05/0.2117, allocations: 11.83 kB / 411.9 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2117, allocations: 4 kB / 411.9 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2117, allocations: 0 / 411.9 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2117, allocations: 3.984 kB / 411.9 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.081e-05/0.2118, allocations: 173.6 kB / 412.1 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2118, allocations: 0 / 412.1 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.2119, allocations: 23.98 kB / 412.1 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.212, allocations: 0 / 412.1 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.212, allocations: 7.984 kB / 412.1 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.212, allocations: 7.891 kB / 412.1 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.212, allocations: 0 / 412.1 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003058/0.2123, allocations: 162.6 kB / 412.3 MB, free: 22.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.976e-05/0.2123, allocations: 85.02 kB / 412.4 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.2124, allocations: 0 / 412.4 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.855e-05/0.2125, allocations: 19.98 kB / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.851e-05/0.2125, allocations: 7.938 kB / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.2125, allocations: 4 kB / 412.4 MB, free: 22.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.343e-05/0.2126, allocations: 99.27 kB / 412.5 MB, free: 22.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2126, allocations: 0 / 412.5 MB, free: 22.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001753/0.2127, allocations: 8 kB / 412.5 MB, free: 22.46 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 8.088e-05/0.2128, allocations: 103.2 kB / 412.6 MB, free: 22.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003138/0.2131, allocations: 88.06 kB / 412.7 MB, free: 22.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2132, allocations: 0 / 412.7 MB, free: 22.26 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.2133, allocations: 47.91 kB / 412.7 MB, free: 22.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.2135, allocations: 11.23 kB / 412.7 MB, free: 22.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004192/0.2139, allocations: 242 kB / 413 MB, free: 21.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.859e-05/0.214, allocations: 0.6887 MB / 413.7 MB, free: 21.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.217e-05/0.214, allocations: 11.44 kB / 413.7 MB, free: 21.21 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.214, allocations: 0 / 413.7 MB, free: 21.21 MB / 298.7 MB Notification: Performance of Templates: time 0.001652/0.2157, allocations: 0.8772 MB / 414.5 MB, free: 20.34 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