Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002351, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2769, allocations: 50.55 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.00341/0.2804, allocations: 1.922 MB / 410.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.2827, allocations: 1.313 MB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.2828, allocations: 0 / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003334/0.2832, allocations: 71.61 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003891/0.2836, allocations: 135.4 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006979/0.2843, allocations: 230.8 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002636/0.2846, allocations: 187.5 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.2847, allocations: 37.66 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.2849, allocations: 87.56 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.285, allocations: 83.67 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.3e-05/0.285, allocations: 8 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.2852, allocations: 63.97 kB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.041e-05/0.2853, allocations: 63.69 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.217e-05/0.2854, allocations: 83.42 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.2858, allocations: 250 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2858, allocations: 0 / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2858, allocations: 4 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.2858, allocations: 0 / 413.3 MB, free: 13.03 MB / 334.1 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.0007762/0.2866, allocations: 0.5542 MB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2867, allocations: 12.03 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.272e-05/0.2867, allocations: 38.73 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.2868, allocations: 24.8 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.2872, allocations: 307.7 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.2873, allocations: 8.375 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.2873, allocations: 11.88 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.2877, allocations: 176.4 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2877, allocations: 0 / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.2877, allocations: 4 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2877, allocations: 4 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.2879, allocations: 39.91 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005833/0.2885, allocations: 407.1 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.2888, allocations: 138.5 kB / 415 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.2889, allocations: 63.42 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.241e-05/0.2889, allocations: 3.984 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.2891, allocations: 79.33 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.853e-06/0.2891, allocations: 0 / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004382/0.2896, allocations: 181.3 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.2897, allocations: 187.8 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.2901, allocations: 342.9 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.2901, allocations: 33.7 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.2903, allocations: 128.8 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.436e-05/0.2903, allocations: 19.91 kB / 416 MB, free: 9.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.2904, allocations: 37.66 kB / 416 MB, free: 9.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.2905, allocations: 338.8 kB / 416.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.003e-05/0.2906, allocations: 23.98 kB / 416.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.2908, allocations: 112.4 kB / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001819/0.291, allocations: 93.94 kB / 416.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.291, allocations: 4 kB / 416.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002707/0.2913, allocations: 145.3 kB / 416.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.2913, allocations: 4 kB / 416.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2913, allocations: 4 kB / 416.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.2913, allocations: 0 / 416.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.2914, allocations: 27.98 kB / 416.8 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.2915, allocations: 3.938 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.268e-05/0.2916, allocations: 16.06 kB / 416.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.2916, allocations: 8 kB / 416.8 MB, free: 9.109 MB / 334.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.2917, allocations: 153.8 kB / 416.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.2919, allocations: 85.44 kB / 417 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.298e-05/0.2919, allocations: 25.73 kB / 417 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2919, allocations: 4 kB / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2919, allocations: 0 / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2919, allocations: 12.03 kB / 417.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.2922, allocations: 245.9 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2922, allocations: 4 kB / 417.3 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.438e-05/0.2923, allocations: 19.94 kB / 417.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2923, allocations: 4.031 kB / 417.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.2923, allocations: 7.984 kB / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2923, allocations: 0 / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2923, allocations: 0 / 417.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.2926, allocations: 187.4 kB / 417.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.2928, allocations: 128.8 kB / 417.6 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.171e-05/0.2928, allocations: 4 kB / 417.6 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.897e-05/0.2929, allocations: 4 kB / 417.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.293, allocations: 15.92 kB / 417.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.293, allocations: 4 kB / 417.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.2933, allocations: 257.9 kB / 417.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2933, allocations: 0 / 417.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.2935, allocations: 35.94 kB / 418 MB, free: 7.824 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002094/0.2957, allocations: 1.039 MB / 419 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002565/0.2959, allocations: 83.89 kB / 419.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2959, allocations: 0 / 419.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.991e-05/0.296, allocations: 31.92 kB / 419.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.2965, allocations: 77.41 kB / 419.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002895/0.2994, allocations: 2.332 MB / 421.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.2998, allocations: 0.7437 MB / 422.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.493e-05/0.2999, allocations: 21.55 kB / 422.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.3, allocations: 75.41 kB / 422.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3, allocations: 0 / 422.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02775/0.3278, allocations: 5.659 MB / 428 MB, free: 13.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.273/8.6, allocations: 3.938 kB / 428 MB, free: 13.84 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches