Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001192/0.001196, allocations: 103.7 kB / 16.92 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 191.3 kB / 17.85 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 47.08 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1042, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004244/0.1085, allocations: 1.906 MB / 352.1 MB, free: 2.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.1106, allocations: 1.157 MB / 353.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.1108, allocations: 7.938 kB / 353.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003296/0.1112, allocations: 63.67 kB / 353.3 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.1115, allocations: 103.5 kB / 353.4 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008073/0.1123, allocations: 261.5 kB / 353.7 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.1126, allocations: 183.5 kB / 353.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.1127, allocations: 33.55 kB / 353.9 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.1129, allocations: 79.69 kB / 353.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.113, allocations: 83.56 kB / 354 MB, free: 452 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.113, allocations: 8 kB / 354 MB, free: 444 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001629/0.1132, allocations: 55.97 kB / 354.1 MB, free: 388 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.679e-05/0.1133, allocations: 55.81 kB / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.1134, allocations: 83.42 kB / 354.2 MB, free: 248 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.1137, allocations: 239.4 kB / 354.5 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1138, allocations: 0 / 354.5 MB, free: 8 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1138, allocations: 4 kB / 354.5 MB, free: 4 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.1138, allocations: 0 / 354.5 MB, free: 4 kB / 286.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.0009263/0.1147, allocations: 0.5466 MB / 355 MB, free: 15.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1148, allocations: 12.03 kB / 355 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/0.1148, allocations: 38.75 kB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.91e-05/0.1149, allocations: 24.66 kB / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.1153, allocations: 291.5 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.1154, allocations: 4.375 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.147e-05/0.1154, allocations: 11.94 kB / 355.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.1158, allocations: 184.4 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.1158, allocations: 0 / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.1159, allocations: 0 / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1159, allocations: 4 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.116, allocations: 47.91 kB / 355.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000617/0.1166, allocations: 399.1 kB / 356 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002758/0.1169, allocations: 142.5 kB / 356.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1171, allocations: 63.36 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.1171, allocations: 4 kB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.1174, allocations: 79.31 kB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.973e-06/0.1174, allocations: 0 / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004523/0.1179, allocations: 173.6 kB / 356.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.118, allocations: 183.9 kB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.1183, allocations: 346.5 kB / 357 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.1184, allocations: 25.7 kB / 357 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.341e-05/0.1185, allocations: 132.3 kB / 357.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.1185, allocations: 19.73 kB / 357.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.1185, allocations: 29.72 kB / 357.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1187, allocations: 338.8 kB / 357.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.025e-05/0.1187, allocations: 27.92 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.1189, allocations: 96.56 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.119, allocations: 105.9 kB / 357.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.119, allocations: 0 / 357.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002637/0.1193, allocations: 145.6 kB / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.1193, allocations: 4 kB / 357.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1193, allocations: 4 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1194, allocations: 0 / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.1195, allocations: 31.92 kB / 357.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1195, allocations: 0 / 357.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.209e-05/0.1196, allocations: 7.938 kB / 357.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.1196, allocations: 12 kB / 357.9 MB, free: 12.13 MB / 302.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.0001393/0.1198, allocations: 154.5 kB / 358.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.774e-05/0.1199, allocations: 77.34 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.494e-05/0.1199, allocations: 25.72 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1199, allocations: 7.984 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1199, allocations: 0 / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.12, allocations: 3.938 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.1202, allocations: 245.5 kB / 358.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1202, allocations: 3.938 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.438e-05/0.1203, allocations: 24.02 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.1203, allocations: 0 / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.1203, allocations: 4 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1203, allocations: 3.984 kB / 358.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1203, allocations: 4 kB / 358.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.1206, allocations: 183.3 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.977e-05/0.1207, allocations: 112.8 kB / 358.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.1207, allocations: 7.984 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.192e-05/0.1208, allocations: 8 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.84e-05/0.1209, allocations: 11.92 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.1209, allocations: 4 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.1211, allocations: 241.9 kB / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1211, allocations: 0 / 359 MB, free: 10.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003161/0.1215, allocations: 39.98 kB / 359.1 MB, free: 10.89 MB / 302.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.001509/0.123, allocations: 1.053 MB / 360.1 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002416/0.1232, allocations: 83.84 kB / 360.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1233, allocations: 0 / 360.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.187e-05/0.1233, allocations: 31.98 kB / 360.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.1238, allocations: 91.69 kB / 360.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.1265, allocations: 2.29 MB / 362.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.127, allocations: 0.7437 MB / 363.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.1271, allocations: 25.53 kB / 363.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.1272, allocations: 67.41 kB / 363.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1272, allocations: 0 / 363.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02626/0.1535, allocations: 5.478 MB / 368.9 MB, free: 1.125 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.454/7.608, allocations: 3.5 kB / 368.9 MB, free: 1.125 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches