Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",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.00113/0.001129, allocations: 106.6 kB / 16.92 MB, free: 6.145 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.001244/0.001244, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.354/1.354, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 51.73 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1286, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003982/0.1327, allocations: 1.417 MB / 351.6 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000272/0.133, allocations: 31.86 kB / 351.6 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.686e-05/0.1331, allocations: 0 / 351.6 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.025e-05/0.1332, allocations: 11.92 kB / 351.6 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.033e-05/0.1333, allocations: 0 / 351.6 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.1336, allocations: 29.41 kB / 351.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.957e-05/0.1337, allocations: 20 kB / 351.7 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1339, allocations: 15.92 kB / 351.7 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.963e-05/0.1339, allocations: 11.94 kB / 351.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.057e-05/0.134, allocations: 11.92 kB / 351.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.134, allocations: 4 kB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.196e-05/0.134, allocations: 0 / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.013e-05/0.1341, allocations: 12 kB / 351.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.669e-05/0.1341, allocations: 23.84 kB / 351.8 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.328e-05/0.1342, allocations: 31.84 kB / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.1342, allocations: 0 / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1342, allocations: 0 / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1342, allocations: 0 / 351.8 MB, free: 2.68 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000458/0.1347, allocations: 343.7 kB / 352.1 MB, free: 2.293 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.1348, allocations: 12.03 kB / 352.1 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.419e-05/0.1348, allocations: 34.75 kB / 352.2 MB, free: 2.238 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.1349, allocations: 4.844 kB / 352.2 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.135, allocations: 176.4 kB / 352.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.1351, allocations: 4.375 kB / 352.3 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1351, allocations: 4.375 kB / 352.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003618/0.1355, allocations: 123.8 kB / 352.5 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1355, allocations: 3.938 kB / 352.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.1355, allocations: 0 / 352.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1355, allocations: 4 kB / 352.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.1356, allocations: 27.97 kB / 352.5 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.1358, allocations: 157.6 kB / 352.7 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.136, allocations: 58.48 kB / 352.7 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.102e-05/0.136, allocations: 24.92 kB / 352.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.1361, allocations: 7.984 kB / 352.8 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.1361, allocations: 38.48 kB / 352.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.1361, allocations: 4 kB / 352.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002974/0.1364, allocations: 81.59 kB / 352.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/0.1365, allocations: 55.41 kB / 352.9 MB, free: 1.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.38e-05/0.1366, allocations: 101.9 kB / 353 MB, free: 1.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.1366, allocations: 25.7 kB / 353.1 MB, free: 1.199 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.851e-05/0.1367, allocations: 88.12 kB / 353.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/0.1367, allocations: 7.906 kB / 353.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.183e-05/0.1367, allocations: 13.72 kB / 353.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1369, allocations: 322.8 kB / 353.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.997e-05/0.1369, allocations: 4 kB / 353.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.333e-05/0.1369, allocations: 31.38 kB / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.974e-05/0.137, allocations: 39.75 kB / 353.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.137, allocations: 0 / 353.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.871e-05/0.1371, allocations: 61.62 kB / 353.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.1371, allocations: 7.938 kB / 353.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1372, allocations: 8 kB / 353.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.1372, allocations: 0 / 353.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.233e-05/0.1372, allocations: 11.98 kB / 353.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1373, allocations: 0 / 353.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.294e-05/0.1373, allocations: 8.125 kB / 353.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-06/0.1373, allocations: 0 / 353.6 MB, free: 0.5586 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.448e-05/0.1374, allocations: 121.7 kB / 353.8 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.1376, allocations: 65.52 kB / 353.8 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.24e-05/0.1376, allocations: 11.91 kB / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1376, allocations: 0 / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1376, allocations: 0 / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1376, allocations: 0 / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/0.1378, allocations: 161.6 kB / 354 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1378, allocations: 4 kB / 354 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.956e-05/0.1378, allocations: 11.98 kB / 354 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.217e-06/0.1379, allocations: 3.938 kB / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.1379, allocations: 0 / 354 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.1379, allocations: 4 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1379, allocations: 0 / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.1381, allocations: 89.05 kB / 354.1 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-05/0.1381, allocations: 88.94 kB / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.1382, allocations: 7.938 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.672e-05/0.1382, allocations: 8 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-06/0.1382, allocations: 0 / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.1382, allocations: 0 / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.156e-05/0.1383, allocations: 87.27 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 4e-07/0.1383, allocations: 0 / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002027/0.1385, allocations: 8 kB / 354.3 MB, free: 15.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0005811/0.1391, allocations: 0.6475 MB / 354.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000143/0.1392, allocations: 36.23 kB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1392, allocations: 0 / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.62e-07/0.1392, allocations: 0 / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.1396, allocations: 32.16 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009935/0.1406, allocations: 1.175 MB / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.1408, allocations: 0.6846 MB / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.016e-05/0.1409, allocations: 0 / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.837e-05/0.1409, allocations: 15.44 kB / 356.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1409, allocations: 0 / 356.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.1572, allocations: 1.339 MB / 358.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/7.48, allocations: 11.44 kB / 358.2 MB, free: 11.81 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock1.period,assignClock1.u,assignClock1.y,step.counter,step.y