Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001385/0.001385, allocations: 197 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.395/1.395, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007962/0.0007963, allocations: 101 kB / 296.7 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002628, allocations: 4 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2897, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00192/0.2916, allocations: 1.583 MB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.2932, allocations: 1.168 MB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.131e-05/0.2933, allocations: 4 kB / 410.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002885/0.2936, allocations: 63.78 kB / 411 MB, free: 24.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002425/0.2938, allocations: 100.4 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005492/0.2944, allocations: 223 kB / 411.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001894/0.2946, allocations: 151.5 kB / 411.4 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.2947, allocations: 27.02 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.331e-05/0.2948, allocations: 68.25 kB / 411.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.429e-05/0.2948, allocations: 63.69 kB / 411.6 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.2949, allocations: 0.6875 kB / 411.6 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.295, allocations: 55.95 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.788e-05/0.2951, allocations: 49.08 kB / 411.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.173e-05/0.2951, allocations: 93.23 kB / 411.8 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.2953, allocations: 176.8 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2953, allocations: 2.688 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2953, allocations: 0 / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.2954, allocations: 4 kB / 411.9 MB, free: 23.88 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005285/0.2959, allocations: 0.5001 MB / 412.4 MB, free: 23.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2959, allocations: 8.031 kB / 412.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.406e-05/0.296, allocations: 41.94 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.296, allocations: 28.64 kB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.2963, allocations: 275.6 kB / 412.8 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.2963, allocations: 16.34 kB / 412.8 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.2963, allocations: 7.938 kB / 412.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.2966, allocations: 158 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2967, allocations: 0 / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.2967, allocations: 4 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.2967, allocations: 8 kB / 413 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.564e-05/0.2968, allocations: 31.92 kB / 413 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004318/0.2972, allocations: 386.3 kB / 413.4 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.2974, allocations: 119.9 kB / 413.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.728e-05/0.2975, allocations: 46.5 kB / 413.6 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.2975, allocations: 4 kB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.2977, allocations: 79.38 kB / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.2977, allocations: 0 / 413.6 MB, free: 21.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003619/0.2981, allocations: 149.3 kB / 413.8 MB, free: 21.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.2982, allocations: 166.1 kB / 413.9 MB, free: 21.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.2984, allocations: 338.8 kB / 414.3 MB, free: 21.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.2985, allocations: 37.64 kB / 414.3 MB, free: 21.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.903e-05/0.2985, allocations: 132 kB / 414.4 MB, free: 21.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.2986, allocations: 15.84 kB / 414.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-06/0.2986, allocations: 0 / 414.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.153e-05/0.2986, allocations: 334.8 kB / 414.8 MB, free: 20.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.74e-05/0.2987, allocations: 23.98 kB / 414.8 MB, free: 20.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.437e-05/0.2988, allocations: 82.86 kB / 414.9 MB, free: 20.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.2989, allocations: 84.2 kB / 415 MB, free: 20.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2989, allocations: 0 / 415 MB, free: 20.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001764/0.2991, allocations: 129.3 kB / 415.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.2991, allocations: 4 kB / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2991, allocations: 0 / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2991, allocations: 4 kB / 415.1 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.617e-05/0.2992, allocations: 19.92 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.2993, allocations: 4 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.415e-05/0.2993, allocations: 11.94 kB / 415.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.2994, allocations: 4.312 kB / 415.1 MB, free: 20.34 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001028/0.2995, allocations: 161.9 kB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.978e-05/0.2995, allocations: 65.36 kB / 415.4 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.2996, allocations: 29.7 kB / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2996, allocations: 0 / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2996, allocations: 0 / 415.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2996, allocations: 11.92 kB / 415.4 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.2998, allocations: 245.5 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2998, allocations: 0 / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-05/0.2998, allocations: 19.98 kB / 415.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2998, allocations: 4 kB / 415.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.2999, allocations: 0 / 415.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2999, allocations: 0 / 415.7 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2999, allocations: 7.938 kB / 415.7 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000202/0.3001, allocations: 162.4 kB / 415.8 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/0.3002, allocations: 116.9 kB / 415.9 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.3002, allocations: 8 kB / 416 MB, free: 19.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.399e-05/0.3003, allocations: 4 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.3003, allocations: 11.92 kB / 416 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.3003, allocations: 8.047 kB / 416 MB, free: 19.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001743/0.3005, allocations: 246 kB / 416.2 MB, free: 19.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3005, allocations: 3.938 kB / 416.2 MB, free: 19.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002246/0.3007, allocations: 39.91 kB / 416.3 MB, free: 19.11 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001081/0.3018, allocations: 1.007 MB / 417.3 MB, free: 18.22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002035/0.3021, allocations: 72.03 kB / 417.3 MB, free: 18.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3021, allocations: 0 / 417.3 MB, free: 18.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.96e-05/0.3021, allocations: 35.86 kB / 417.4 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.3025, allocations: 62.98 kB / 417.4 MB, free: 18.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.3039, allocations: 1.224 MB / 418.7 MB, free: 16.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.304, allocations: 0.7439 MB / 419.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.94e-05/0.3041, allocations: 59.42 kB / 419.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3041, allocations: 0 / 419.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.314/3.619, allocations: 3.494 MB / 423 MB, free: 12.43 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.isCsvExt,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.timeScaled,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.n,table.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time