Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.0014/0.0014, allocations: 110.4 kB / 21.23 MB, free: 0.5312 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.002457/0.002457, allocations: 213.5 kB / 24.54 MB, free: 3.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.562/1.562, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 68.77 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3138, allocations: 53.35 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.003745/0.3175, allocations: 1.681 MB / 433.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.319, allocations: 0.5919 MB / 434.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.3191, allocations: 0 / 434.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.347e-05/0.3192, allocations: 11.86 kB / 434.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.3194, allocations: 19.86 kB / 434.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.3199, allocations: 59.81 kB / 434.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.32, allocations: 67.78 kB / 434.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.3202, allocations: 20.2 kB / 434.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.3203, allocations: 35.86 kB / 434.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.776e-05/0.3204, allocations: 31.78 kB / 434.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.3204, allocations: 8 kB / 434.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.789e-05/0.3205, allocations: 19.98 kB / 434.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.22e-05/0.3206, allocations: 15.92 kB / 434.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.3206, allocations: 39.73 kB / 434.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.3209, allocations: 80.02 kB / 434.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3209, allocations: 0 / 434.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3209, allocations: 4 kB / 434.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.3209, allocations: 0 / 434.6 MB, free: 4.184 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.0005956/0.3215, allocations: 313.9 kB / 434.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.3215, allocations: 15.95 kB / 434.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.477e-05/0.3216, allocations: 42.75 kB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.3217, allocations: 24.83 kB / 435 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.3221, allocations: 146.8 kB / 435.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.3221, allocations: 8.375 kB / 435.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.248e-05/0.3222, allocations: 7.938 kB / 435.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003864/0.3225, allocations: 141 kB / 435.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.3226, allocations: 0 / 435.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.3226, allocations: 3.938 kB / 435.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.3226, allocations: 4 kB / 435.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001221/0.3227, allocations: 31.97 kB / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006069/0.3233, allocations: 276.7 kB / 435.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.3236, allocations: 77.12 kB / 435.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.704e-05/0.3237, allocations: 33.8 kB / 435.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.3237, allocations: 11.98 kB / 435.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.3239, allocations: 63.3 kB / 435.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.3239, allocations: 0 / 435.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003878/0.3242, allocations: 121.7 kB / 435.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.822e-05/0.3243, allocations: 81.11 kB / 436 MB, free: 2.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.3245, allocations: 151.2 kB / 436.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.3246, allocations: 33.69 kB / 436.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.227e-05/0.3246, allocations: 88.14 kB / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.674e-05/0.3247, allocations: 19.84 kB / 436.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.3247, allocations: 33.66 kB / 436.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3249, allocations: 322.8 kB / 436.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.807e-05/0.3249, allocations: 20.05 kB / 436.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.145e-05/0.325, allocations: 65.14 kB / 436.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.3252, allocations: 89.02 kB / 436.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3252, allocations: 4 kB / 436.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000218/0.3254, allocations: 117.4 kB / 436.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3254, allocations: 8 kB / 436.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3254, allocations: 0 / 436.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3254, allocations: 4 kB / 436.9 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.681e-05/0.3255, allocations: 11.94 kB / 436.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3255, allocations: 7.984 kB / 436.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.816e-05/0.3256, allocations: 12.09 kB / 436.9 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.3256, allocations: 4 kB / 436.9 MB, free: 1.574 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.0001187/0.3257, allocations: 127.1 kB / 437.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.299e-05/0.3258, allocations: 49.64 kB / 437.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.3258, allocations: 16.39 kB / 437.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.3259, allocations: 7.938 kB / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3259, allocations: 0 / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3259, allocations: 0 / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.3263, allocations: 325.6 kB / 437.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3263, allocations: 0 / 437.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.139e-05/0.3264, allocations: 11.94 kB / 437.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.3264, allocations: 3.984 kB / 437.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.3264, allocations: 0 / 437.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3264, allocations: 4.125 kB / 437.5 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3264, allocations: 4 kB / 437.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.3266, allocations: 200.3 kB / 437.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.935e-05/0.3267, allocations: 24.11 kB / 437.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.3267, allocations: 0 / 437.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.719e-05/0.3268, allocations: 7.984 kB / 437.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.3268, allocations: 11.92 kB / 437.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.3268, allocations: 4 kB / 437.7 MB, free: 0.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.333e-05/0.3269, allocations: 114.2 kB / 437.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3269, allocations: 0 / 437.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002574/0.3272, allocations: 24.05 kB / 437.9 MB, free: 0.5742 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.0007104/0.3279, allocations: 0.7639 MB / 438.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.3281, allocations: 64.16 kB / 438.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3281, allocations: 4 kB / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.371e-05/0.3282, allocations: 19.92 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.3285, allocations: 32 kB / 438.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.3305, allocations: 1.536 MB / 440.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.3308, allocations: 0.7041 MB / 441 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.857e-05/0.3309, allocations: 8.422 kB / 441 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.331, allocations: 23.44 kB / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.331, allocations: 0 / 441 MB, free: 13.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.3583, allocations: 2.098 MB / 443.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.3/8.658, allocations: 7.453 kB / 443.1 MB, free: 11.27 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.166043478995562] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'triggeredSampler.y'] 8.729228136129677 8.748864083 8.424315957 Calling exit ...