Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001624/0.001625, allocations: 196.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.6 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.0008805/0.0008806, allocations: 95.31 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002158/0.000216, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2017, allocations: 51.29 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.001407/0.2031, allocations: 1.285 MB / 409.3 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006612/0.2038, allocations: 493.8 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.758e-05/0.2039, allocations: 0 / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.204, allocations: 3.938 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.2041, allocations: 11.92 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.2044, allocations: 46.97 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.811e-05/0.2045, allocations: 47.84 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2046, allocations: 8.188 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.2047, allocations: 23.91 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.577e-05/0.2048, allocations: 19.86 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.2048, allocations: 4.75 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.878e-05/0.2048, allocations: 4 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.651e-05/0.2049, allocations: 13.34 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.997e-05/0.2049, allocations: 49.55 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.4e-05/0.205, allocations: 35.94 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.205, allocations: 0 / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.205, allocations: 1.594 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.205, allocations: 0 / 410.1 MB, free: 25.65 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003533/0.2054, allocations: 369.4 kB / 410.4 MB, free: 25.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2054, allocations: 8.031 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.2056, allocations: 26.2 kB / 410.5 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.2057, allocations: 206.3 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.2057, allocations: 384 / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.2058, allocations: 10.22 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.2061, allocations: 117.3 kB / 410.8 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.2061, allocations: 0 / 410.8 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.2061, allocations: 0 / 410.8 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2061, allocations: 4 kB / 410.8 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.847e-05/0.2062, allocations: 27.92 kB / 410.8 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002525/0.2065, allocations: 274.6 kB / 411.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.113e-05/0.2066, allocations: 71.78 kB / 411.2 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.677e-05/0.2066, allocations: 34.62 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.2067, allocations: 7.938 kB / 411.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.2067, allocations: 34.56 kB / 411.2 MB, free: 24.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.683e-06/0.2067, allocations: 4 kB / 411.3 MB, free: 24.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002516/0.2069, allocations: 89.52 kB / 411.3 MB, free: 24.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.207, allocations: 110.8 kB / 411.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.192e-05/0.2071, allocations: 138.2 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.2071, allocations: 29.7 kB / 411.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.544e-05/0.2072, allocations: 92.14 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.302e-05/0.2072, allocations: 7.844 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.2072, allocations: 0 / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.542e-05/0.2072, allocations: 322.8 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.869e-05/0.2073, allocations: 11.98 kB / 412 MB, free: 23.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.824e-05/0.2073, allocations: 43.42 kB / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.448e-05/0.2074, allocations: 47.36 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2074, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001146/0.2075, allocations: 77.61 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.2076, allocations: 4 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2076, allocations: 4 kB / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.2076, allocations: 0 / 412.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.178e-05/0.2077, allocations: 11.98 kB / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2077, allocations: 3.938 kB / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.059e-05/0.2077, allocations: 16 kB / 412.2 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.2077, allocations: 4 kB / 412.2 MB, free: 23.2 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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.342e-05/0.2078, allocations: 121.8 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.2079, allocations: 49.55 kB / 412.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.879e-05/0.2079, allocations: 15.86 kB / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2079, allocations: 4 kB / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2079, allocations: 0 / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2079, allocations: 0 / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.2081, allocations: 177.7 kB / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2081, allocations: 0 / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.373e-05/0.2081, allocations: 11.98 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2081, allocations: 0 / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.2081, allocations: 4 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2081, allocations: 0 / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2082, allocations: 0 / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001427/0.2083, allocations: 189 kB / 412.8 MB, free: 22.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.06e-05/0.2084, allocations: 93 kB / 412.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.2084, allocations: 8 kB / 412.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.518e-05/0.2084, allocations: 4 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.127e-05/0.2085, allocations: 3.984 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.2085, allocations: 0 / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.795e-05/0.2085, allocations: 114.5 kB / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2086, allocations: 0 / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002163/0.2088, allocations: 4 kB / 413 MB, free: 22.3 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 7.852e-05/0.2089, allocations: 99.23 kB / 413.1 MB, free: 22.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001299/0.209, allocations: 39.92 kB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.209, allocations: 4.25 kB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.646e-05/0.209, allocations: 11.98 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.2094, allocations: 27.84 kB / 413.2 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002884/0.2097, allocations: 240.4 kB / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.2099, allocations: 0.6887 MB / 414.1 MB, free: 21.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.859e-05/0.2099, allocations: 11.44 kB / 414.1 MB, free: 21.11 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2099, allocations: 0 / 414.1 MB, free: 21.11 MB / 298.7 MB Notification: Performance of Templates: time 0.001779/0.2117, allocations: 0.8033 MB / 414.9 MB, free: 20.32 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches