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.001931/0.001931, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002192/0.002193, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3525, allocations: 50.54 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003407/0.356, allocations: 1.647 MB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3572, allocations: 0.5648 MB / 411.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.3573, allocations: 4 kB / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.802e-05/0.3574, allocations: 15.86 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.3576, allocations: 15.86 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004291/0.3581, allocations: 63.81 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.3582, allocations: 59.84 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.3584, allocations: 28.14 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.3585, allocations: 31.86 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.373e-05/0.3586, allocations: 27.84 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.3586, allocations: 11.94 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.805e-05/0.3587, allocations: 19.98 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.379e-05/0.3588, allocations: 19.92 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.401e-05/0.3589, allocations: 35.8 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002293/0.3591, allocations: 78.55 kB / 411.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3591, allocations: 0 / 411.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3591, allocations: 0 / 411.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.3591, allocations: 0 / 411.5 MB, free: 14.84 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.0006407/0.3598, allocations: 403 kB / 411.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.3598, allocations: 12.02 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.34e-05/0.3599, allocations: 34.75 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.3601, allocations: 28.83 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.3604, allocations: 208.1 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.3605, allocations: 4.312 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.3605, allocations: 15.94 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.3609, allocations: 144.9 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3609, allocations: 3.938 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.3609, allocations: 4 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.3609, allocations: 3.938 kB / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001174/0.3611, allocations: 31.98 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005457/0.3616, allocations: 309.7 kB / 412.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.3619, allocations: 158.2 kB / 412.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.104e-05/0.362, allocations: 33.8 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.362, allocations: 0 / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.3622, allocations: 75.28 kB / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.3622, allocations: 0 / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003555/0.3626, allocations: 117.5 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.998e-05/0.3627, allocations: 89.09 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.3629, allocations: 145.7 kB / 413.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.3629, allocations: 29.7 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.462e-05/0.363, allocations: 96.12 kB / 413.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.363, allocations: 11.91 kB / 413.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.258e-05/0.3631, allocations: 33.66 kB / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.3633, allocations: 322.8 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.29e-05/0.3634, allocations: 16 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.3635, allocations: 65.12 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.3636, allocations: 85.02 kB / 413.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3637, allocations: 0 / 413.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002287/0.3639, allocations: 113.5 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3639, allocations: 7.984 kB / 414 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.3639, allocations: 4 kB / 414 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.364, allocations: 0 / 414 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.311e-05/0.3641, allocations: 19.94 kB / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3641, allocations: 0 / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.845e-05/0.3641, allocations: 11.92 kB / 414 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.3642, allocations: 4.156 kB / 414 MB, free: 11.93 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.000144/0.3643, allocations: 129.8 kB / 414.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-05/0.3644, allocations: 57.58 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.734e-05/0.3645, allocations: 12.31 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.3645, allocations: 3.938 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.3645, allocations: 4.297 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3645, allocations: 0 / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004461/0.3649, allocations: 350.5 kB / 414.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.365, allocations: 4 kB / 414.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.788e-05/0.365, allocations: 11.94 kB / 414.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.365, allocations: 3.938 kB / 414.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.3651, allocations: 7.984 kB / 414.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3651, allocations: 0 / 414.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.3651, allocations: 3.938 kB / 414.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.3653, allocations: 200.6 kB / 414.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.049e-05/0.3654, allocations: 105 kB / 414.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.3655, allocations: 0 / 414.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.056e-05/0.3656, allocations: 7.938 kB / 414.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.3656, allocations: 4 kB / 414.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.3656, allocations: 7.984 kB / 414.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.72e-05/0.3657, allocations: 110.6 kB / 415 MB, free: 10.81 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3657, allocations: 0 / 415 MB, free: 10.81 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.366, allocations: 19.95 kB / 415.1 MB, free: 10.79 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.0007156/0.3667, allocations: 0.7679 MB / 415.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000205/0.3669, allocations: 59.91 kB / 415.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3669, allocations: 384 / 415.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.554e-05/0.367, allocations: 31.92 kB / 415.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.3674, allocations: 28 kB / 415.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001758/0.3692, allocations: 1.547 MB / 417.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.3696, allocations: 0.7118 MB / 418.2 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.179e-05/0.3696, allocations: 8.422 kB / 418.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.457e-05/0.3697, allocations: 23.44 kB / 418.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3697, allocations: 0 / 418.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.3964, allocations: 2.037 MB / 420.3 MB, free: 5.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/9.005, allocations: 14.77 kB / 420.3 MB, free: 5.535 MB / 334.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) Reference file matches