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.001643/0.001643, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00211/0.00211, allocations: 201.2 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.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2624, allocations: 50.53 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003572/0.266, allocations: 1.926 MB / 410.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.2683, allocations: 1.301 MB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.2685, allocations: 7.938 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003329/0.2688, allocations: 71.66 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003639/0.2692, allocations: 139.4 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006513/0.2699, allocations: 231 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.2701, allocations: 187.5 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.2703, allocations: 33.67 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.2704, allocations: 83.62 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.2705, allocations: 87.61 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.2705, allocations: 8 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.2707, allocations: 67.95 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.62e-05/0.2708, allocations: 55.77 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.794e-05/0.2709, allocations: 87.41 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.2713, allocations: 249.9 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2713, allocations: 0 / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2713, allocations: 4 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.2713, allocations: 0 / 413.3 MB, free: 13.02 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.0008015/0.2721, allocations: 0.5503 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.2722, allocations: 12.03 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.925e-05/0.2722, allocations: 42.73 kB / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.825e-05/0.2723, allocations: 20.8 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.2727, allocations: 315.6 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.2728, allocations: 8.375 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.2728, allocations: 7.938 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.2732, allocations: 192.3 kB / 414.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2732, allocations: 0 / 414.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.2732, allocations: 8 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2732, allocations: 0 / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.2733, allocations: 39.91 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.2739, allocations: 399.2 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002635/0.2742, allocations: 146.5 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.2743, allocations: 55.42 kB / 415 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.2743, allocations: 7.984 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.2745, allocations: 75.33 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.2745, allocations: 0 / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004262/0.275, allocations: 181.4 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.2751, allocations: 191.8 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.2754, allocations: 342.9 kB / 415.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.2755, allocations: 29.7 kB / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.762e-05/0.2756, allocations: 132.4 kB / 416 MB, free: 9.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.2756, allocations: 16.34 kB / 416 MB, free: 9.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/0.2757, allocations: 41.66 kB / 416 MB, free: 9.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2758, allocations: 338.8 kB / 416.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.537e-05/0.2759, allocations: 23.98 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.2761, allocations: 108.5 kB / 416.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.2762, allocations: 97.88 kB / 416.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2762, allocations: 4 kB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002652/0.2765, allocations: 141.4 kB / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2765, allocations: 4 kB / 416.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2766, allocations: 4 kB / 416.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2766, allocations: 0 / 416.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.2767, allocations: 31.92 kB / 416.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2767, allocations: 0 / 416.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.849e-05/0.2768, allocations: 16.06 kB / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.2768, allocations: 8 kB / 416.8 MB, free: 9.09 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.0001583/0.277, allocations: 161.7 kB / 416.9 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.2771, allocations: 85.44 kB / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.738e-05/0.2772, allocations: 29.73 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2772, allocations: 0 / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.2772, allocations: 4 kB / 417.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2772, allocations: 3.938 kB / 417.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.2774, allocations: 246 kB / 417.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2775, allocations: 7.938 kB / 417.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.206e-05/0.2775, allocations: 16 kB / 417.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.2776, allocations: 3.984 kB / 417.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2776, allocations: 4 kB / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2776, allocations: 0 / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2776, allocations: 0 / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.2779, allocations: 191.3 kB / 417.5 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.278, allocations: 124.8 kB / 417.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.533e-05/0.278, allocations: 4 kB / 417.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.318e-05/0.2781, allocations: 8 kB / 417.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.2782, allocations: 11.92 kB / 417.7 MB, free: 8.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.2782, allocations: 4 kB / 417.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002335/0.2784, allocations: 253.9 kB / 417.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2784, allocations: 4 kB / 417.9 MB, free: 7.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.2787, allocations: 35.94 kB / 418 MB, free: 7.805 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.001423/0.2802, allocations: 1.038 MB / 419 MB, free: 6.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.2804, allocations: 87.83 kB / 419.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2805, allocations: 0 / 419.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.545e-05/0.2806, allocations: 27.98 kB / 419.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004743/0.281, allocations: 94.28 kB / 419.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.2836, allocations: 2.325 MB / 421.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.284, allocations: 0.7437 MB / 422.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.47e-05/0.2841, allocations: 25.53 kB / 422.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2842, allocations: 75.41 kB / 422.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2842, allocations: 0 / 422.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.3081, allocations: 5.652 MB / 428 MB, free: 13.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.033, allocations: 3.938 kB / 428 MB, free: 13.82 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.0.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