Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001408/0.001407, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.00167, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001827, allocations: 67.33 kB / 307.1 MB, free: 452 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.145, allocations: 50.52 MB / 357.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.005082/0.1502, allocations: 1.641 MB / 359.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.1518, allocations: 0.5843 MB / 359.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.1521, allocations: 0 / 359.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.149e-05/0.1522, allocations: 7.875 kB / 359.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.1524, allocations: 15.88 kB / 359.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.1531, allocations: 71.78 kB / 359.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.1533, allocations: 59.8 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.1535, allocations: 24.2 kB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.1537, allocations: 39.84 kB / 360 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.1538, allocations: 35.78 kB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.1538, allocations: 11.94 kB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.896e-05/0.1539, allocations: 8 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.798e-05/0.154, allocations: 23.92 kB / 360.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.012e-05/0.1541, allocations: 31.75 kB / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002493/0.1543, allocations: 83.69 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1543, allocations: 0 / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1543, allocations: 0 / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1544, allocations: 0 / 360.2 MB, free: 11.27 MB / 302.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.0009068/0.1553, allocations: 391.3 kB / 360.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.693e-05/0.1554, allocations: 8.031 kB / 360.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.89e-05/0.1554, allocations: 50.72 kB / 360.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.1557, allocations: 24.73 kB / 360.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003333/0.156, allocations: 204.2 kB / 360.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.1561, allocations: 4.375 kB / 360.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.1561, allocations: 11.94 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.1566, allocations: 143.7 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1566, allocations: 0 / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1566, allocations: 0 / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.1566, allocations: 0 / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.1568, allocations: 35.97 kB / 361.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007031/0.1575, allocations: 309.5 kB / 361.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.1578, allocations: 154.2 kB / 361.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.645e-05/0.1579, allocations: 37.8 kB / 361.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.158, allocations: 0 / 361.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.1583, allocations: 67.39 kB / 361.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 3.747e-06/0.1583, allocations: 4 kB / 361.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004388/0.1587, allocations: 121.3 kB / 361.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.1589, allocations: 81.11 kB / 361.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.159, allocations: 153.7 kB / 362 MB, free: 9.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.1591, allocations: 25.7 kB / 362 MB, free: 9.223 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/0.1592, allocations: 96.14 kB / 362.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.1592, allocations: 11.8 kB / 362.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.999e-05/0.1593, allocations: 33.66 kB / 362.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1595, allocations: 318.8 kB / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.882e-05/0.1596, allocations: 23.98 kB / 362.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.813e-05/0.1597, allocations: 65.08 kB / 362.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.1598, allocations: 81.06 kB / 362.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1598, allocations: 256 / 362.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002581/0.1601, allocations: 121.5 kB / 362.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.1601, allocations: 4 kB / 362.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1601, allocations: 4 kB / 362.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.1602, allocations: 0 / 362.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.994e-05/0.1603, allocations: 27.8 kB / 362.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.1603, allocations: 0 / 362.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.417e-05/0.1604, allocations: 4 kB / 362.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.1604, allocations: 12.16 kB / 362.8 MB, free: 8.375 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.0001447/0.1605, allocations: 133.9 kB / 362.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.88e-05/0.1606, allocations: 65.44 kB / 363 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.1607, allocations: 12.31 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1607, allocations: 3.938 kB / 363 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1607, allocations: 0 / 363 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.1607, allocations: 4 kB / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00045/0.1612, allocations: 342.6 kB / 363.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1612, allocations: 0 / 363.3 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.458e-05/0.1613, allocations: 15.92 kB / 363.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.1613, allocations: 7.938 kB / 363.4 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.1613, allocations: 4 kB / 363.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1613, allocations: 0 / 363.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1613, allocations: 0 / 363.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.1616, allocations: 208.2 kB / 363.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.338e-05/0.1617, allocations: 96.94 kB / 363.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.1617, allocations: 4 kB / 363.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.807e-05/0.1618, allocations: 4 kB / 363.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.534e-05/0.1619, allocations: 7.984 kB / 363.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.1619, allocations: 0 / 363.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.807e-05/0.162, allocations: 114.2 kB / 363.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.162, allocations: 0 / 363.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.1623, allocations: 19.91 kB / 363.8 MB, free: 7.242 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.0007284/0.163, allocations: 0.7719 MB / 364.6 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002361/0.1633, allocations: 76.28 kB / 364.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.1633, allocations: 4.062 kB / 364.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.424e-05/0.1634, allocations: 19.98 kB / 364.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.1638, allocations: 27.95 kB / 364.7 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.1656, allocations: 1.544 MB / 366.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.1659, allocations: 0.7041 MB / 366.9 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.985e-05/0.166, allocations: 8.422 kB / 367 MB, free: 3.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.1661, allocations: 30.81 kB / 367 MB, free: 3.891 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1661, allocations: 4 kB / 367 MB, free: 3.887 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.1889, allocations: 1.985 MB / 369 MB, free: 2.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.944/8.133, allocations: 13 kB / 369 MB, free: 2.016 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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