Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 196 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.564/1.564, allocations: 226.5 MB / 244.7 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007365/0.0007367, allocations: 96.09 kB / 296.7 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002585, allocations: 11.98 kB / 356.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.28, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.002122/0.2821, allocations: 1.602 MB / 409.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.2838, allocations: 1.207 MB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.284, allocations: 4 kB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003495/0.2843, allocations: 63.73 kB / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.2846, allocations: 105.4 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.2853, allocations: 229.4 kB / 411.3 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.2856, allocations: 159.5 kB / 411.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2858, allocations: 31.14 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.2859, allocations: 67.64 kB / 411.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.286, allocations: 73.78 kB / 411.7 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.286, allocations: 7.938 kB / 411.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.2862, allocations: 55.95 kB / 411.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.579e-05/0.2862, allocations: 47.77 kB / 411.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.145e-05/0.2863, allocations: 101.2 kB / 411.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.2866, allocations: 178 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.2866, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2866, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2866, allocations: 0.9688 kB / 412 MB, free: 23.77 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006928/0.2873, allocations: 0.5192 MB / 412.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.2873, allocations: 8.031 kB / 412.6 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.166e-05/0.2874, allocations: 42.73 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.003e-05/0.2875, allocations: 24.66 kB / 412.6 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.2878, allocations: 291.5 kB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.2878, allocations: 4.375 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.2879, allocations: 11.94 kB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003525/0.2882, allocations: 180.4 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.2882, allocations: 0 / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.2883, allocations: 7.938 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2883, allocations: 0 / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.2884, allocations: 39.97 kB / 413.2 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005041/0.2889, allocations: 403.1 kB / 413.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.2891, allocations: 146.5 kB / 413.7 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.114e-05/0.2892, allocations: 59.36 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.2893, allocations: 7.984 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.2895, allocations: 79.39 kB / 413.8 MB, free: 21.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.633e-06/0.2895, allocations: 0 / 413.8 MB, free: 21.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003743/0.2899, allocations: 165.2 kB / 414 MB, free: 21.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.364e-05/0.2899, allocations: 200.2 kB / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.2902, allocations: 350.8 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.2902, allocations: 29.7 kB / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/0.2903, allocations: 128.4 kB / 414.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.2903, allocations: 19.8 kB / 414.7 MB, free: 20.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.2903, allocations: 0 / 414.7 MB, free: 20.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.778e-05/0.2904, allocations: 326.8 kB / 415 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.17e-05/0.2905, allocations: 23.98 kB / 415.1 MB, free: 20.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.461e-05/0.2906, allocations: 104.6 kB / 415.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.2907, allocations: 101.9 kB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.2907, allocations: 3.984 kB / 415.3 MB, free: 20.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001959/0.2909, allocations: 141.2 kB / 415.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2909, allocations: 8.188 kB / 415.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.291, allocations: 3.938 kB / 415.4 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.291, allocations: 4 kB / 415.4 MB, free: 20.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.2911, allocations: 23.92 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.2911, allocations: 4 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.885e-05/0.2912, allocations: 19.86 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.2912, allocations: 7.984 kB / 415.5 MB, free: 19.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001151/0.2913, allocations: 153.8 kB / 415.6 MB, free: 19.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-05/0.2914, allocations: 81.34 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.891e-05/0.2915, allocations: 29.73 kB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.2915, allocations: 4 kB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.2915, allocations: 3.938 kB / 415.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2915, allocations: 3.938 kB / 415.7 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.2917, allocations: 249.5 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2917, allocations: 0 / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.916e-05/0.2917, allocations: 20.3 kB / 416 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.2918, allocations: 4 kB / 416 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.2918, allocations: 4.094 kB / 416 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.2918, allocations: 8 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2918, allocations: 0 / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002322/0.292, allocations: 183.2 kB / 416.2 MB, free: 19.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.833e-05/0.2921, allocations: 128.7 kB / 416.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.2922, allocations: 8 kB / 416.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.659e-05/0.2922, allocations: 4 kB / 416.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/0.2923, allocations: 11.92 kB / 416.3 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.2923, allocations: 12 kB / 416.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001959/0.2925, allocations: 245.9 kB / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2925, allocations: 0 / 416.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002456/0.2928, allocations: 36 kB / 416.6 MB, free: 18.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001237/0.294, allocations: 1.036 MB / 417.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002084/0.2942, allocations: 87.84 kB / 417.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2942, allocations: 3.938 kB / 417.8 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.953e-05/0.2943, allocations: 27.98 kB / 417.8 MB, free: 17.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004408/0.2948, allocations: 76.7 kB / 417.9 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/0.2963, allocations: 1.296 MB / 419.2 MB, free: 16.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.2965, allocations: 0.744 MB / 419.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.907e-05/0.2966, allocations: 67.41 kB / 420 MB, free: 15.34 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2966, allocations: 0 / 420 MB, free: 15.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.147/3.444, allocations: 3.689 MB / 423.7 MB, free: 11.65 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.u,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.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