Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",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.001622/0.001622, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.002009/0.002009, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.376/1.376, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009808/0.0009809, allocations: 46.98 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1147, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.004553/0.1193, allocations: 1.856 MB / 352 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.1213, allocations: 1.149 MB / 353.2 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.1214, allocations: 8 kB / 353.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.1219, allocations: 63.66 kB / 353.2 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002786/0.1222, allocations: 91.59 kB / 353.3 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007584/0.1229, allocations: 262.3 kB / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002093/0.1231, allocations: 175.5 kB / 353.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.1233, allocations: 25.55 kB / 353.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.775e-05/0.1234, allocations: 67.7 kB / 353.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.1235, allocations: 79.62 kB / 353.9 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.1235, allocations: 12 kB / 353.9 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000133/0.1237, allocations: 59.95 kB / 354 MB, free: 476 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.446e-05/0.1238, allocations: 55.83 kB / 354.1 MB, free: 420 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.494e-05/0.1239, allocations: 83.42 kB / 354.1 MB, free: 336 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002982/0.1242, allocations: 231.5 kB / 354.4 MB, free: 104 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1242, allocations: 4 kB / 354.4 MB, free: 100 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1242, allocations: 0 / 354.4 MB, free: 100 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1242, allocations: 3.984 kB / 354.4 MB, free: 96 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007249/0.1249, allocations: 0.5195 MB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.125, allocations: 12.03 kB / 354.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.903e-05/0.1251, allocations: 34.75 kB / 354.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.415e-05/0.1251, allocations: 24.66 kB / 355 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.1254, allocations: 291.5 kB / 355.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.1255, allocations: 4.375 kB / 355.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.1255, allocations: 7.938 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.1258, allocations: 170.5 kB / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1258, allocations: 0 / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.1259, allocations: 8 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.1259, allocations: 0 / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001123/0.126, allocations: 39.91 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.1265, allocations: 386.3 kB / 355.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.1267, allocations: 115.8 kB / 356 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.234e-05/0.1268, allocations: 42.56 kB / 356 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.1269, allocations: 8 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/0.1271, allocations: 75.38 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.1271, allocations: 0 / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003622/0.1275, allocations: 157.2 kB / 356.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.766e-05/0.1276, allocations: 162.5 kB / 356.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.1279, allocations: 334.6 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.1279, allocations: 29.7 kB / 356.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.517e-05/0.128, allocations: 124.1 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/0.128, allocations: 15.81 kB / 356.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.196e-05/0.1281, allocations: 33.7 kB / 356.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1282, allocations: 326.8 kB / 357.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.832e-05/0.1283, allocations: 23.98 kB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.1284, allocations: 98.72 kB / 357.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.1285, allocations: 88.47 kB / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1285, allocations: 0 / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002211/0.1288, allocations: 117.3 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1288, allocations: 8 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1288, allocations: 0 / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1288, allocations: 7.984 kB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.1289, allocations: 15.94 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.129, allocations: 4.125 kB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.664e-05/0.129, allocations: 19.92 kB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.1291, allocations: 4 kB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,superSample1.y,superSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001276/0.1292, allocations: 153.8 kB / 357.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.405e-05/0.1293, allocations: 69.34 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.469e-05/0.1293, allocations: 29.69 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1294, allocations: 4 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1294, allocations: 0 / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1294, allocations: 8 kB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001852/0.1296, allocations: 233.7 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1296, allocations: 0 / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.745e-05/0.1296, allocations: 15.92 kB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1297, allocations: 4 kB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.1297, allocations: 4 kB / 358.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1297, allocations: 7.938 kB / 358.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1297, allocations: 0 / 358.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.1299, allocations: 170.4 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.993e-05/0.1301, allocations: 112.8 kB / 358.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.1301, allocations: 8.062 kB / 358.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.616e-05/0.1302, allocations: 8 kB / 358.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.063e-05/0.1302, allocations: 15.92 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1302, allocations: 4 kB / 358.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.1305, allocations: 237.9 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1305, allocations: 4 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002605/0.1308, allocations: 31.98 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample1.y,sample1.y,superSample1.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 (9): * Single equations (assignments): 7 * 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.001314/0.1321, allocations: 1.023 MB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002278/0.1323, allocations: 79.84 kB / 359.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1323, allocations: 0 / 359.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.021e-05/0.1324, allocations: 27.98 kB / 359.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.1328, allocations: 72.23 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.1352, allocations: 2.187 MB / 362.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.1354, allocations: 0.7397 MB / 362.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.945e-05/0.1355, allocations: 29.53 kB / 362.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.02e-05/0.1356, allocations: 55.42 kB / 362.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1356, allocations: 0 / 362.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02178/0.1574, allocations: 5.129 MB / 368.1 MB, free: 2.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/7.589, allocations: 7.562 kB / 368.1 MB, free: 2.059 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches