Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00208/0.00208, allocations: 119 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002114/0.002114, allocations: 197.2 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 55.91 kB / 365.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1065, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002751/0.1092, allocations: 1.475 MB / 419.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002033/0.1094, allocations: 31.91 kB / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.896e-05/0.1095, allocations: 4 kB / 419.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.613e-05/0.1095, allocations: 7.922 kB / 419.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.066e-05/0.1096, allocations: 7.875 kB / 419.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.1098, allocations: 19.98 kB / 419.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.349e-05/0.1099, allocations: 39.91 kB / 419.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.279e-05/0.11, allocations: 7.984 kB / 419.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.697e-05/0.1101, allocations: 15.94 kB / 419.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.833e-05/0.1101, allocations: 23.91 kB / 419.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.1101, allocations: 4 kB / 419.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.059e-05/0.1101, allocations: 4 kB / 419.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.985e-05/0.1102, allocations: 4 kB / 419.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.123e-05/0.1102, allocations: 23.84 kB / 419.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.1103, allocations: 35.83 kB / 419.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1103, allocations: 3.938 kB / 419.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1103, allocations: 4 kB / 419.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.1103, allocations: 0 / 419.5 MB, free: 10.89 MB / 350.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.0005533/0.1109, allocations: 355.4 kB / 419.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1109, allocations: 12.03 kB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.218e-05/0.111, allocations: 30.75 kB / 419.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.111, allocations: 12.92 kB / 419.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.1112, allocations: 180.2 kB / 420.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.1112, allocations: 384 / 420.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.1112, allocations: 8.375 kB / 420.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005966/0.1118, allocations: 163.7 kB / 420.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1118, allocations: 3.938 kB / 420.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.1119, allocations: 0 / 420.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.1119, allocations: 3.938 kB / 420.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.1121, allocations: 47.94 kB / 420.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001544/0.1123, allocations: 161.7 kB / 420.5 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.1126, allocations: 90.44 kB / 420.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.1128, allocations: 32.91 kB / 420.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.1128, allocations: 0 / 420.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.1129, allocations: 34.56 kB / 420.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.1129, allocations: 4 kB / 420.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005531/0.1134, allocations: 117.5 kB / 420.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/0.1135, allocations: 59.59 kB / 420.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.1136, allocations: 109.8 kB / 420.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1136, allocations: 25.7 kB / 420.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.766e-05/0.1137, allocations: 84.14 kB / 421 MB, free: 9.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.1137, allocations: 4 kB / 421 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.1137, allocations: 17.72 kB / 421 MB, free: 9.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1139, allocations: 314.8 kB / 421.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.693e-05/0.1139, allocations: 8 kB / 421.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.285e-05/0.1139, allocations: 27.44 kB / 421.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.896e-05/0.114, allocations: 39.38 kB / 421.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.114, allocations: 0 / 421.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001096/0.1141, allocations: 69.56 kB / 421.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1141, allocations: 7.938 kB / 421.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1141, allocations: 320 / 421.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.1141, allocations: 7.938 kB / 421.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.143e-05/0.1142, allocations: 11.98 kB / 421.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.1142, allocations: 3.938 kB / 421.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.582e-05/0.1142, allocations: 128 / 421.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.1142, allocations: 11.98 kB / 421.5 MB, free: 8.609 MB / 350.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: 2 ($CLKPRE.ramp.counter,ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.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.83e-05/0.1143, allocations: 118 kB / 421.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00033/0.1147, allocations: 89.56 kB / 421.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.895e-05/0.1147, allocations: 7.906 kB / 421.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1147, allocations: 0 / 421.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1147, allocations: 0 / 421.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1147, allocations: 0 / 421.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.1148, allocations: 165.6 kB / 421.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1148, allocations: 0 / 421.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.115, allocations: 15.92 kB / 421.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.115, allocations: 3.938 kB / 421.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.115, allocations: 3.984 kB / 421.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.115, allocations: 8 kB / 421.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.115, allocations: 0 / 421.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003449/0.1153, allocations: 105.1 kB / 422 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.25e-05/0.1154, allocations: 92.98 kB / 422.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.1154, allocations: 7.938 kB / 422.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.351e-05/0.1155, allocations: 7.984 kB / 422.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-06/0.1155, allocations: 0 / 422.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.1155, allocations: 4 kB / 422.1 MB, free: 7.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.139e-05/0.1155, allocations: 87.28 kB / 422.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1155, allocations: 0 / 422.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001928/0.1157, allocations: 4 kB / 422.2 MB, free: 7.793 MB / 350.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: 1 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.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.0008884/0.1166, allocations: 0.6904 MB / 422.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002334/0.1168, allocations: 47.97 kB / 423 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.1169, allocations: 4 kB / 423 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.1169, allocations: 0 / 423 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.1173, allocations: 39.97 kB / 423 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.1184, allocations: 1.201 MB / 424.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.1187, allocations: 0.6844 MB / 424.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.041e-05/0.1188, allocations: 0 / 424.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.343e-05/0.1188, allocations: 15.55 kB / 424.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1188, allocations: 0 / 424.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.1421, allocations: 1.517 MB / 426.4 MB, free: 3.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.039, allocations: 0 / 426.4 MB, free: 3.559 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,ramp.y,periodicClock1.period,ramp.height [Calling sys.exit(0), Time elapsed: 10.639273706823587]