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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002225/0.002226, allocations: 109.5 kB / 16.92 MB, free: 5.777 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.002959/0.002959, 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.706/1.706, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 52.77 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1386, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.004338/0.143, allocations: 1.625 MB / 351.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.1443, allocations: 0.5064 MB / 352.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.1445, allocations: 4 kB / 352.3 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.381e-05/0.1446, allocations: 11.88 kB / 352.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.1448, allocations: 11.91 kB / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004391/0.1453, allocations: 60.83 kB / 352.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.1454, allocations: 63.78 kB / 352.4 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1456, allocations: 20.22 kB / 352.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1457, allocations: 39.78 kB / 352.5 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.44e-05/0.1458, allocations: 19.86 kB / 352.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.889e-05/0.1459, allocations: 8 kB / 352.5 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.981e-05/0.1459, allocations: 8 kB / 352.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.257e-05/0.146, allocations: 19.92 kB / 352.6 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.157e-05/0.146, allocations: 43.72 kB / 352.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.1462, allocations: 75.66 kB / 352.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1462, allocations: 0 / 352.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.648e-06/0.1462, allocations: 0 / 352.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.1463, allocations: 3.984 kB / 352.7 MB, free: 1.793 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007324/0.147, allocations: 391.3 kB / 353.1 MB, free: 1.363 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.1471, allocations: 8.031 kB / 353.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.547e-05/0.1471, allocations: 42.75 kB / 353.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.401e-05/0.1472, allocations: 8.844 kB / 353.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.1475, allocations: 204 kB / 353.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.1475, allocations: 4.375 kB / 353.3 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.1476, allocations: 8.375 kB / 353.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004167/0.148, allocations: 141.1 kB / 353.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.148, allocations: 7.922 kB / 353.5 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.148, allocations: 0 / 353.5 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.148, allocations: 3.984 kB / 353.5 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.1482, allocations: 39.91 kB / 353.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.1489, allocations: 313.5 kB / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.1492, allocations: 154.2 kB / 354 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.501e-05/0.1493, allocations: 37.8 kB / 354 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1493, allocations: 0 / 354 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.1496, allocations: 71.33 kB / 354.1 MB, free: 172 kB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.763e-06/0.1496, allocations: 4 kB / 354.1 MB, free: 168 kB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003752/0.15, allocations: 109.8 kB / 354.2 MB, free: 52 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.1501, allocations: 85.05 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.1503, allocations: 137.8 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.1503, allocations: 33.7 kB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.5e-05/0.1504, allocations: 92.05 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.522e-05/0.1504, allocations: 15.89 kB / 354.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.891e-05/0.1505, allocations: 29.62 kB / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1506, allocations: 326.8 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.098e-05/0.1507, allocations: 24.05 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.675e-05/0.1508, allocations: 61.14 kB / 355 MB, free: 15.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.151, allocations: 85.06 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.151, allocations: 0 / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002322/0.1513, allocations: 121.4 kB / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1513, allocations: 4 kB / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1513, allocations: 0 / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.1513, allocations: 4 kB / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.1514, allocations: 11.98 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.1514, allocations: 4 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.645e-05/0.1515, allocations: 4 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.1515, allocations: 12.09 kB / 355.2 MB, free: 14.93 MB / 302.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.0001525/0.1517, allocations: 141 kB / 355.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.366e-05/0.1518, allocations: 49.59 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.146e-05/0.1518, allocations: 12.55 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.1518, allocations: 7.984 kB / 355.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1519, allocations: 0 / 355.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1519, allocations: 0 / 355.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004044/0.1523, allocations: 362.4 kB / 355.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1523, allocations: 0 / 355.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.025e-05/0.1524, allocations: 11.98 kB / 355.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.1524, allocations: 0 / 355.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1524, allocations: 0 / 355.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.1524, allocations: 12.06 kB / 355.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1524, allocations: 0 / 355.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/0.1527, allocations: 204.2 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.693e-05/0.1527, allocations: 93 kB / 356.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.1528, allocations: 4 kB / 356.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.529e-05/0.1529, allocations: 3.938 kB / 356.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.1529, allocations: 7.984 kB / 356.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.1529, allocations: 8 kB / 356.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.52e-05/0.153, allocations: 109.8 kB / 356.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.153, allocations: 0 / 356.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002608/0.1533, allocations: 12 kB / 356.2 MB, free: 13.8 MB / 302.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.0006718/0.154, allocations: 0.7722 MB / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.1542, allocations: 68.22 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1542, allocations: 4.25 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.77e-05/0.1543, allocations: 23.92 kB / 357.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003693/0.1547, allocations: 35.88 kB / 357.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.1565, allocations: 1.536 MB / 358.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.1569, allocations: 0.6963 MB / 359.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.001e-05/0.157, allocations: 4.672 kB / 359.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.617e-05/0.157, allocations: 34.42 kB / 359.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.157, allocations: 0 / 359.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.1804, allocations: 1.977 MB / 361.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.959/8.139, allocations: 8.062 kB / 361.4 MB, free: 8.594 MB / 302.1 MB (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 3.6e-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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,triggeredSampler.y Variables in the result:time,clockToTrigger.u,sample1.y,triggeredSampler.u,triggeredSampler.y,sine.amplitude