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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_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.001376/0.001376, allocations: 190.5 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007875/0.0007875, allocations: 103.1 kB / 296.7 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.0002622, allocations: 8 kB / 356.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2396, allocations: 51.28 MB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.001507/0.2411, allocations: 1.292 MB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006641/0.2418, allocations: 485.9 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.648e-05/0.2419, allocations: 7.938 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.392e-05/0.242, allocations: 3.938 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.2421, allocations: 3.938 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.2424, allocations: 48.64 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.395e-05/0.2425, allocations: 39.84 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.554e-05/0.2426, allocations: 17.77 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.2427, allocations: 17.34 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.724e-05/0.2427, allocations: 27.84 kB / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.32e-05/0.2428, allocations: 0 / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.898e-05/0.2428, allocations: 4 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.267e-05/0.2428, allocations: 13.14 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.124e-05/0.2429, allocations: 49.58 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.672e-05/0.243, allocations: 31.92 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.243, allocations: 8.531 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.243, allocations: 0 / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.243, allocations: 0.6875 kB / 410.2 MB, free: 25.61 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.0003877/0.2434, allocations: 374.8 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.2434, allocations: 8.031 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.86e-05/0.2435, allocations: 34.75 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.2436, allocations: 21.92 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.2438, allocations: 202.5 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.2438, allocations: 384 / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.2438, allocations: 9.938 kB / 410.8 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.2441, allocations: 115.4 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2441, allocations: 4 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.2441, allocations: 0 / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.2441, allocations: 0 / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.803e-05/0.2442, allocations: 35.91 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002506/0.2445, allocations: 278.6 kB / 411.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.731e-05/0.2446, allocations: 67.78 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.59e-05/0.2446, allocations: 42.56 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.2446, allocations: 4 kB / 411.3 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.2447, allocations: 34.56 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.051e-06/0.2447, allocations: 0 / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002463/0.2449, allocations: 93.86 kB / 411.5 MB, free: 24.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.245, allocations: 110.8 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.2451, allocations: 137.8 kB / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.729e-06/0.2451, allocations: 29.7 kB / 411.7 MB, free: 23.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.443e-05/0.2452, allocations: 88.14 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.4e-05/0.2452, allocations: 3.906 kB / 411.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-06/0.2452, allocations: 0 / 411.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.904e-05/0.2452, allocations: 322.8 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.923e-05/0.2453, allocations: 15.94 kB / 412.2 MB, free: 23.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.24e-05/0.2453, allocations: 39.42 kB / 412.2 MB, free: 23.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.974e-05/0.2454, allocations: 51.36 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2454, allocations: 0 / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001148/0.2456, allocations: 73.61 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2456, allocations: 4.125 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2456, allocations: 4 kB / 412.3 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2456, allocations: 4 kB / 412.3 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.473e-05/0.2457, allocations: 15.92 kB / 412.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.2457, allocations: 7.922 kB / 412.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.96e-05/0.2457, allocations: 7.938 kB / 412.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-06/0.2458, allocations: 4 kB / 412.4 MB, free: 23.11 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 6.211e-05/0.2458, allocations: 121.7 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.416e-05/0.2459, allocations: 57.53 kB / 412.5 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.2459, allocations: 15.86 kB / 412.6 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2459, allocations: 4 kB / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.246, allocations: 0 / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.246, allocations: 0 / 412.6 MB, free: 22.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.2461, allocations: 177.5 kB / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2461, allocations: 0 / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.427e-05/0.2462, allocations: 11.98 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2462, allocations: 0 / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.2462, allocations: 4 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.2462, allocations: 8.062 kB / 412.8 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2462, allocations: 0 / 412.8 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.2464, allocations: 181.1 kB / 412.9 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.2464, allocations: 93 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.2465, allocations: 8 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.428e-05/0.2465, allocations: 4 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.556e-05/0.2466, allocations: 3.984 kB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.2466, allocations: 0 / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.003e-05/0.2466, allocations: 110.4 kB / 413.1 MB, free: 22.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2466, allocations: 0 / 413.1 MB, free: 22.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002104/0.2469, allocations: 4 kB / 413.2 MB, free: 22.21 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.0003523/0.2472, allocations: 0.7179 MB / 413.9 MB, free: 21.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.2474, allocations: 43.92 kB / 413.9 MB, free: 21.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2474, allocations: 0 / 413.9 MB, free: 21.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.2474, allocations: 11.98 kB / 413.9 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.2478, allocations: 23.95 kB / 413.9 MB, free: 21.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007945/0.2486, allocations: 0.5713 MB / 414.5 MB, free: 20.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.2488, allocations: 0.6966 MB / 415.2 MB, free: 20.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.2488, allocations: 15.44 kB / 415.2 MB, free: 20.01 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2488, allocations: 0 / 415.2 MB, free: 20.01 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.507/2.756, allocations: 1.035 MB / 416.3 MB, free: 18.98 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > 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/jenkins1/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) "" Variables in the reference:time,sample1.y,subSample1.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,subSample1.inferFactor,subSample1.u,subSample1.y,time