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.001161/0.001161, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 59.38 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1102, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003717/0.1139, allocations: 1.916 MB / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.1161, allocations: 1.309 MB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.1163, allocations: 4 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.1166, allocations: 75.61 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003843/0.117, allocations: 131.4 kB / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007016/0.1177, allocations: 223.2 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000292/0.118, allocations: 195.4 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.1182, allocations: 45.64 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.1184, allocations: 79.64 kB / 361.5 MB, free: 10 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.1185, allocations: 83.67 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.1185, allocations: 8 kB / 361.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.1187, allocations: 71.89 kB / 361.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.1188, allocations: 51.78 kB / 361.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.1189, allocations: 87.41 kB / 361.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003946/0.1193, allocations: 247.5 kB / 362.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1194, allocations: 0 / 362.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1194, allocations: 0 / 362.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1194, allocations: 0 / 362.1 MB, free: 9.461 MB / 302.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.0007999/0.1202, allocations: 0.5505 MB / 362.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1202, allocations: 8.031 kB / 362.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.295e-05/0.1203, allocations: 38.75 kB / 362.7 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.706e-05/0.1204, allocations: 28.56 kB / 362.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.1208, allocations: 295.6 kB / 363 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.1208, allocations: 12.31 kB / 363 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.1208, allocations: 7.938 kB / 363 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.1212, allocations: 182.8 kB / 363.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1212, allocations: 7.938 kB / 363.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.1213, allocations: 4 kB / 363.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1213, allocations: 0 / 363.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.1214, allocations: 43.91 kB / 363.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.122, allocations: 403.2 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.1223, allocations: 134.5 kB / 363.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.1224, allocations: 59.42 kB / 363.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.1225, allocations: 12.06 kB / 363.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.1227, allocations: 75.31 kB / 363.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 4.308e-06/0.1228, allocations: 4 kB / 363.9 MB, free: 7.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004181/0.1232, allocations: 173.2 kB / 364.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.1233, allocations: 187.9 kB / 364.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.1236, allocations: 342.9 kB / 364.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.1237, allocations: 29.7 kB / 364.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.541e-05/0.1238, allocations: 136.7 kB / 364.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.1238, allocations: 23.75 kB / 364.8 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.399e-05/0.1239, allocations: 33.7 kB / 364.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.124, allocations: 334.8 kB / 365.2 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.202e-05/0.1241, allocations: 27.92 kB / 365.2 MB, free: 6.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.1242, allocations: 104.6 kB / 365.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.1244, allocations: 106.2 kB / 365.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1244, allocations: 0 / 365.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002604/0.1247, allocations: 141.2 kB / 365.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.1247, allocations: 10.81 kB / 365.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1247, allocations: 0 / 365.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.1247, allocations: 4 kB / 365.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.1249, allocations: 19.98 kB / 365.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.1249, allocations: 7.938 kB / 365.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.146e-05/0.125, allocations: 16.12 kB / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.125, allocations: 7.938 kB / 365.6 MB, free: 5.555 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.000151/0.1251, allocations: 157.8 kB / 365.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.1253, allocations: 77.36 kB / 365.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.722e-05/0.1254, allocations: 33.72 kB / 365.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1254, allocations: 0 / 365.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.1254, allocations: 8.031 kB / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.1254, allocations: 12.02 kB / 365.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.1256, allocations: 253.4 kB / 366.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1256, allocations: 0 / 366.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.521e-05/0.1257, allocations: 15.94 kB / 366.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1257, allocations: 0 / 366.1 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.1257, allocations: 11.92 kB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1257, allocations: 0 / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1258, allocations: 4 kB / 366.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.126, allocations: 183.3 kB / 366.3 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1262, allocations: 120.7 kB / 366.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.1262, allocations: 8.062 kB / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.251e-05/0.1263, allocations: 8 kB / 366.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.769e-05/0.1263, allocations: 11.92 kB / 366.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.1263, allocations: 4 kB / 366.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.1266, allocations: 257.9 kB / 366.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1266, allocations: 0 / 366.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.1269, allocations: 36 kB / 366.8 MB, free: 4.262 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.001302/0.1282, allocations: 1.034 MB / 367.8 MB, free: 3.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002399/0.1284, allocations: 91.83 kB / 367.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1284, allocations: 4 kB / 367.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.002e-05/0.1285, allocations: 27.98 kB / 367.9 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.129, allocations: 77.77 kB / 368 MB, free: 3.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.1315, allocations: 2.306 MB / 370.3 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1545/0.286, allocations: 0.747 MB / 371 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.2862, allocations: 28.7 kB / 371.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.2863, allocations: 69.38 kB / 371.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2863, allocations: 0 / 371.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0233/0.3096, allocations: 5.558 MB / 376.7 MB, free: 19.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.712/8.021, allocations: 8.531 kB / 376.7 MB, free: 19.03 MB / 302.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