Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 226.5 MB / 244.7 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008208/0.0008208, allocations: 104.6 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002528, allocations: 12 kB / 356.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2067, allocations: 51.29 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001319/0.2081, allocations: 1.261 MB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006028/0.2087, allocations: 482.3 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.456e-05/0.2088, allocations: 4 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.834e-05/0.2088, allocations: 0 / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.209, allocations: 7.922 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.2092, allocations: 47.83 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.022e-05/0.2093, allocations: 48.3 kB / 410 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.254e-05/0.2093, allocations: 14.8 kB / 410 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.389e-05/0.2094, allocations: 23.92 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.607e-05/0.2095, allocations: 11.92 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.2095, allocations: 4 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.609e-05/0.2096, allocations: 4 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.139e-05/0.2096, allocations: 16.42 kB / 410 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.015e-05/0.2096, allocations: 46.95 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.533e-05/0.2097, allocations: 39.92 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2097, allocations: 0 / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2097, allocations: 0 / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.2098, allocations: 0.7812 kB / 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.0003711/0.2101, allocations: 366 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2102, allocations: 8.031 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.179e-05/0.2102, allocations: 42.73 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.2103, allocations: 21.59 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.2105, allocations: 196.6 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.2105, allocations: 8.312 kB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-06/0.2105, allocations: 384 / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.2107, allocations: 124.3 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.2108, allocations: 0 / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.2108, allocations: 0 / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.2108, allocations: 0 / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.314e-05/0.2109, allocations: 19.98 kB / 410.9 MB, free: 24.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002276/0.2111, allocations: 261.8 kB / 411.2 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.022e-05/0.2112, allocations: 53.16 kB / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.28e-05/0.2112, allocations: 21.75 kB / 411.2 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.2113, allocations: 8 kB / 411.2 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.069e-05/0.2113, allocations: 34.5 kB / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.2113, allocations: 0 / 411.3 MB, free: 24.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002109/0.2115, allocations: 73.67 kB / 411.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.2115, allocations: 81.05 kB / 411.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.014e-05/0.2116, allocations: 138.1 kB / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.2116, allocations: 29.7 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.057e-05/0.2117, allocations: 92.14 kB / 411.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.281e-05/0.2117, allocations: 0 / 411.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/0.2117, allocations: 4.156 kB / 411.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.219e-05/0.2118, allocations: 326.8 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.767e-05/0.2118, allocations: 4 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.475e-05/0.2119, allocations: 21.7 kB / 412 MB, free: 23.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.394e-05/0.2119, allocations: 41.7 kB / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.212, allocations: 0 / 412.1 MB, free: 23.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001021/0.2121, allocations: 61.53 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.2121, allocations: 4 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2121, allocations: 0 / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.2121, allocations: 4 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.435e-05/0.2122, allocations: 12.05 kB / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.2122, allocations: 0 / 412.1 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.388e-05/0.2122, allocations: 7.938 kB / 412.2 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.2122, allocations: 0 / 412.2 MB, free: 23.37 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.14e-05/0.2123, allocations: 117.8 kB / 412.3 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.2123, allocations: 45.53 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.451e-05/0.2124, allocations: 11.88 kB / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.2124, allocations: 4.031 kB / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2124, allocations: 0 / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2124, allocations: 4 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001107/0.2125, allocations: 173.5 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2125, allocations: 0 / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.22e-05/0.2126, allocations: 7.984 kB / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2126, allocations: 4 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.2126, allocations: 0 / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2126, allocations: 0 / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2126, allocations: 0 / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001218/0.2127, allocations: 176.3 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.2128, allocations: 85.02 kB / 412.8 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.2128, allocations: 3.984 kB / 412.8 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.482e-05/0.2129, allocations: 4 kB / 412.8 MB, free: 22.63 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.718e-05/0.2129, allocations: 4.031 kB / 412.8 MB, free: 22.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-06/0.2129, allocations: 0 / 412.8 MB, free: 22.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.668e-05/0.213, allocations: 118.3 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.213, allocations: 0 / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002204/0.2132, allocations: 4 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0002539/0.2134, allocations: 0.6975 MB / 413.6 MB, free: 21.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.2136, allocations: 19.98 kB / 413.6 MB, free: 21.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2136, allocations: 0 / 413.6 MB, free: 21.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.606e-05/0.2136, allocations: 20.09 kB / 413.6 MB, free: 21.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.2139, allocations: 16.02 kB / 413.6 MB, free: 21.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006232/0.2146, allocations: 0.5132 MB / 414.2 MB, free: 21.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.2147, allocations: 0.6887 MB / 414.9 MB, free: 20.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.687e-05/0.2147, allocations: 19.42 kB / 414.9 MB, free: 20.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2147, allocations: 4 kB / 414.9 MB, free: 20.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.539/2.754, allocations: 0.9253 MB / 415.8 MB, free: 19.49 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,time