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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001624/0.001624, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002082/0.002082, allocations: 216.2 kB / 23.73 MB, free: 4.395 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 67.89 kB / 377.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3016, allocations: 53.4 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003223/0.3048, allocations: 1.651 MB / 432.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.306, allocations: 0.5454 MB / 433.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.3061, allocations: 3.938 kB / 433.3 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.064e-05/0.3062, allocations: 7.875 kB / 433.3 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.3063, allocations: 19.84 kB / 433.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004292/0.3067, allocations: 67.75 kB / 433.4 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.3069, allocations: 59.84 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.307, allocations: 24.14 kB / 433.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.3072, allocations: 35.86 kB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.497e-05/0.3072, allocations: 27.84 kB / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.3073, allocations: 7.938 kB / 433.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.241e-05/0.3073, allocations: 16 kB / 433.6 MB, free: 4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.997e-05/0.3074, allocations: 15.92 kB / 433.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.793e-05/0.3074, allocations: 31.8 kB / 433.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.3076, allocations: 89.27 kB / 433.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3077, allocations: 0 / 433.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3077, allocations: 0 / 433.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.3077, allocations: 0 / 433.7 MB, free: 3.867 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.0005759/0.3082, allocations: 317.9 kB / 434 MB, free: 3.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.3083, allocations: 15.98 kB / 434.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.928e-05/0.3083, allocations: 34.75 kB / 434.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.3085, allocations: 28.83 kB / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.3088, allocations: 146.2 kB / 434.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.3088, allocations: 8.375 kB / 434.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.3089, allocations: 7.938 kB / 434.3 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.3092, allocations: 144.2 kB / 434.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3092, allocations: 11.92 kB / 434.4 MB, free: 3.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3092, allocations: 3.984 kB / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.3092, allocations: 0 / 434.4 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.3093, allocations: 39.92 kB / 434.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.3098, allocations: 264.8 kB / 434.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.3101, allocations: 77.08 kB / 434.8 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.699e-05/0.3102, allocations: 33.8 kB / 434.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.3102, allocations: 8 kB / 434.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.3103, allocations: 71.28 kB / 434.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.3103, allocations: 0 / 434.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003513/0.3107, allocations: 113.6 kB / 435 MB, free: 2.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.174e-05/0.3108, allocations: 85.05 kB / 435.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.3109, allocations: 153.7 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.3109, allocations: 25.7 kB / 435.3 MB, free: 2.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.289e-05/0.311, allocations: 96.12 kB / 435.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.311, allocations: 11.91 kB / 435.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/0.3111, allocations: 33.66 kB / 435.4 MB, free: 1.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3112, allocations: 318.8 kB / 435.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.58e-05/0.3113, allocations: 23.98 kB / 435.8 MB, free: 1.621 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.239e-05/0.3114, allocations: 61.12 kB / 435.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.3115, allocations: 85.08 kB / 435.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3115, allocations: 4 kB / 435.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000208/0.3117, allocations: 113.5 kB / 436 MB, free: 1.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3118, allocations: 7.938 kB / 436 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3118, allocations: 3.984 kB / 436 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.3118, allocations: 4 kB / 436 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.511e-05/0.3119, allocations: 11.94 kB / 436 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.3119, allocations: 4 kB / 436.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.985e-05/0.312, allocations: 16.08 kB / 436.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.312, allocations: 11.94 kB / 436.1 MB, free: 1.262 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.0001177/0.3121, allocations: 125.8 kB / 436.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.3122, allocations: 53.64 kB / 436.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.99e-05/0.3122, allocations: 8.406 kB / 436.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3122, allocations: 8.172 kB / 436.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3122, allocations: 320 / 436.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.3122, allocations: 7.969 kB / 436.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003848/0.3126, allocations: 309.6 kB / 436.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3126, allocations: 0 / 436.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.636e-05/0.3127, allocations: 19.92 kB / 436.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3127, allocations: 4 kB / 436.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.3127, allocations: 4 kB / 436.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3127, allocations: 0 / 436.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3127, allocations: 0 / 436.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002515/0.3129, allocations: 208.3 kB / 436.8 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.849e-05/0.313, allocations: 23.88 kB / 436.8 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.313, allocations: 0 / 436.8 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.651e-05/0.3131, allocations: 8 kB / 436.8 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.488e-05/0.3131, allocations: 3.984 kB / 436.8 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3131, allocations: 8 kB / 436.9 MB, free: 408 kB / 334.1 MB Notification: Performance of sorting global known variables: time 9.578e-05/0.3132, allocations: 110.6 kB / 437 MB, free: 300 kB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3132, allocations: 4 kB / 437 MB, free: 296 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002427/0.3135, allocations: 15.95 kB / 437 MB, free: 280 kB / 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.0006956/0.3142, allocations: 0.7756 MB / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002203/0.3144, allocations: 59.91 kB / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.3144, allocations: 384 / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.638e-05/0.3144, allocations: 27.92 kB / 437.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.3148, allocations: 22.77 kB / 437.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.3165, allocations: 1.548 MB / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.578e-05/0.3166, allocations: 88.98 kB / 439.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.956e-05/0.3166, allocations: 8.438 kB / 439.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.891e-05/0.3167, allocations: 23.42 kB / 439.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3167, allocations: 0 / 439.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.3486, allocations: 2.609 MB / 442.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.25, allocations: 14.25 kB / 442.2 MB, free: 11.05 MB / 350.1 MB " [Timeout remaining time 649] (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 1.79641e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.csv","/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) [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: 13.949640227947384]