Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.00186/0.00186, allocations: 122.4 kB / 17.74 MB, free: 5.219 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.002331/0.002331, allocations: 186.9 kB / 20.68 MB, free: 2.293 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.506/1.506, allocations: 222.9 MB / 246.4 MB, free: 4.199 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.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 43.92 kB / 357.5 MB, free: 8.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.119, allocations: 49.43 MB / 406.9 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003495/0.1226, allocations: 1.641 MB / 408.6 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.1236, allocations: 0.5064 MB / 409.1 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.303e-05/0.1237, allocations: 7.938 kB / 409.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.948e-05/0.1238, allocations: 3.938 kB / 409.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.124, allocations: 15.86 kB / 409.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.1243, allocations: 55.81 kB / 409.2 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.1245, allocations: 63.83 kB / 409.2 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1246, allocations: 24.23 kB / 409.3 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.532e-05/0.1247, allocations: 31.84 kB / 409.3 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.57e-05/0.1248, allocations: 27.84 kB / 409.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.1248, allocations: 8 kB / 409.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.1248, allocations: 4 kB / 409.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.2e-05/0.1249, allocations: 19.92 kB / 409.3 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.406e-05/0.125, allocations: 39.69 kB / 409.4 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.1252, allocations: 83.86 kB / 409.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1252, allocations: 0 / 409.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.1252, allocations: 0 / 409.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1252, allocations: 0 / 409.5 MB, free: 4.809 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006771/0.1259, allocations: 402.9 kB / 409.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.126, allocations: 8.031 kB / 409.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.27e-05/0.126, allocations: 42.73 kB / 409.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.431e-05/0.126, allocations: 8.891 kB / 409.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.1263, allocations: 205.2 kB / 410.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1263, allocations: 8.375 kB / 410.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.1264, allocations: 8.359 kB / 410.1 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003341/0.1267, allocations: 139.5 kB / 410.3 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1267, allocations: 0 / 410.3 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.1267, allocations: 4 kB / 410.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1268, allocations: 4 kB / 410.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.1269, allocations: 35.91 kB / 410.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005125/0.1274, allocations: 309.5 kB / 410.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.1277, allocations: 162.2 kB / 410.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.916e-05/0.1278, allocations: 37.8 kB / 410.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.1278, allocations: 0 / 410.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001335/0.128, allocations: 67.39 kB / 410.9 MB, free: 3.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.128, allocations: 4 kB / 410.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003167/0.1283, allocations: 117.5 kB / 411 MB, free: 3.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.475e-05/0.1284, allocations: 81.11 kB / 411.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.1285, allocations: 147.8 kB / 411.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.1286, allocations: 29.7 kB / 411.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.1286, allocations: 96.08 kB / 411.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.1287, allocations: 15.89 kB / 411.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/0.1287, allocations: 33.72 kB / 411.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.1289, allocations: 322.8 kB / 411.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.817e-05/0.129, allocations: 23.92 kB / 411.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.07e-05/0.1291, allocations: 57.14 kB / 411.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.1292, allocations: 85.08 kB / 411.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1293, allocations: 0 / 411.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000236/0.1295, allocations: 121.6 kB / 412 MB, free: 1.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1295, allocations: 6.188 kB / 412 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1295, allocations: 4 kB / 412 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1296, allocations: 0 / 412 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.829e-05/0.1297, allocations: 19.92 kB / 412 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.1297, allocations: 0 / 412 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.435e-05/0.1297, allocations: 4 kB / 412 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.1297, allocations: 4 kB / 412 MB, free: 1.934 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.000141/0.1299, allocations: 133.7 kB / 412.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.43e-05/0.13, allocations: 65.78 kB / 412.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.325e-05/0.13, allocations: 20.3 kB / 412.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.13, allocations: 0 / 412.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1301, allocations: 0 / 412.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1301, allocations: 0 / 412.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004279/0.1305, allocations: 342.8 kB / 412.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.1305, allocations: 4.062 kB / 412.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.948e-05/0.1306, allocations: 11.98 kB / 412.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1306, allocations: 0 / 412.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.1306, allocations: 8 kB / 412.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.1306, allocations: 3.938 kB / 412.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1306, allocations: 0 / 412.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002704/0.1309, allocations: 204.3 kB / 412.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.247e-05/0.131, allocations: 101 kB / 412.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.131, allocations: 0 / 412.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-05/0.1311, allocations: 12.03 kB / 412.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.1312, allocations: 7.922 kB / 412.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.1312, allocations: 11.94 kB / 412.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.081e-05/0.1313, allocations: 113.3 kB / 413 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1313, allocations: 0 / 413 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002315/0.1315, allocations: 8 kB / 413 MB, free: 0.7969 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007016/0.1322, allocations: 0.7722 MB / 413.8 MB, free: 16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002155/0.1324, allocations: 63.89 kB / 413.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1325, allocations: 0 / 413.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.048e-05/0.1325, allocations: 16 kB / 413.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.1329, allocations: 37.58 kB / 413.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.1346, allocations: 1.537 MB / 415.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.135, allocations: 0.7002 MB / 416.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.029e-05/0.135, allocations: 8.656 kB / 416.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.663e-05/0.1351, allocations: 27.44 kB / 416.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1351, allocations: 3.938 kB / 416.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.1601, allocations: 2.015 MB / 418.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.314, allocations: 22.06 kB / 418.2 MB, free: 11.57 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,triggeredSampler.y Variables in the result:time,clockToTrigger.u,sample1.y,triggeredSampler.u,triggeredSampler.y,sine.amplitude [Calling sys.exit(0), Time elapsed: 11.211185752996244]