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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.5 MB / 230.3 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 93.84 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.112e-05/2.106e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3118/0.415, allocations: 76.86 MB / 464.4 MB, free: 1.867 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.4153, allocations: 79.95 kB / 464.5 MB, free: 1.789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00455/0.4199, allocations: 1.681 MB / 466.2 MB, free: 116 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4199, allocations: 4 kB / 466.2 MB, free: 112 kB / 330.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.4199, allocations: 7.938 kB / 466.2 MB, free: 104 kB / 330.7 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.000405/0.4203, allocations: 363.1 kB / 466.5 MB, free: 15.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.4204, allocations: 8.031 kB / 466.6 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.387e-05/0.4204, allocations: 19.75 kB / 466.6 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.4207, allocations: 196.7 kB / 466.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.4207, allocations: 7.938 kB / 466.8 MB, free: 15.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.4207, allocations: 4 kB / 466.8 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001047/0.4208, allocations: 31.98 kB / 466.8 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.4211, allocations: 115.9 kB / 466.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4211, allocations: 3.984 kB / 466.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.4211, allocations: 0 / 466.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.4211, allocations: 4 kB / 466.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004667/0.4216, allocations: 278.2 kB / 467.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.4218, allocations: 142.3 kB / 467.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.069e-05/0.4219, allocations: 33.72 kB / 467.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.4219, allocations: 12.19 kB / 467.4 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.298e-05/0.422, allocations: 59.34 kB / 467.4 MB, free: 14.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.422, allocations: 4 kB / 467.4 MB, free: 14.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001784/0.4222, allocations: 77.48 kB / 467.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.4223, allocations: 89.05 kB / 467.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.647e-05/0.4224, allocations: 127.2 kB / 467.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.4224, allocations: 25.7 kB / 467.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.212e-05/0.4225, allocations: 92.14 kB / 467.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.4225, allocations: 19.8 kB / 467.9 MB, free: 14.19 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/0.4225, allocations: 0 / 467.9 MB, free: 14.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.4226, allocations: 310.8 kB / 468.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.235e-05/0.4227, allocations: 16 kB / 468.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.316e-05/0.4227, allocations: 57.14 kB / 468.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.357e-05/0.4228, allocations: 19.98 kB / 468.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4228, allocations: 0 / 468.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000143/0.4229, allocations: 97.55 kB / 468.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.423, allocations: 8 kB / 468.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.423, allocations: 0 / 468.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.423, allocations: 4 kB / 468.4 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.528e-05/0.4231, allocations: 19.98 kB / 468.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.4231, allocations: 8 kB / 468.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.54e-05/0.4231, allocations: 4 kB / 468.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.4232, allocations: 8 kB / 468.4 MB, free: 13.62 MB / 346.7 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 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.625e-05/0.4233, allocations: 105 kB / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001138/0.4234, allocations: 93.47 kB / 468.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.4234, allocations: 7.906 kB / 468.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.652e-05/0.4234, allocations: 16.39 kB / 468.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.4234, allocations: 0 / 468.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4235, allocations: 0 / 468.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.4235, allocations: 0 / 468.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/0.4237, allocations: 311 kB / 468.9 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.4237, allocations: 0 / 468.9 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.075e-05/0.4238, allocations: 15.94 kB / 468.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4238, allocations: 0 / 468.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.4238, allocations: 7.984 kB / 469 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.4238, allocations: 0 / 469 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4239, allocations: 3.984 kB / 469 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/0.424, allocations: 193.9 kB / 469.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.66e-05/0.4241, allocations: 108.9 kB / 469.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.4241, allocations: 0 / 469.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.256e-05/0.4242, allocations: 4 kB / 469.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.544e-05/0.4242, allocations: 3.984 kB / 469.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.4243, allocations: 4 kB / 469.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.066e-05/0.4243, allocations: 107.3 kB / 469.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4243, allocations: 0 / 469.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000253/0.4246, allocations: 15.95 kB / 469.4 MB, free: 12.54 MB / 346.7 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,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004996/0.4251, allocations: 0.8149 MB / 470.2 MB, free: 11.69 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.4252, allocations: 51.88 kB / 470.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4253, allocations: 0 / 470.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.194e-05/0.4253, allocations: 16.23 kB / 470.3 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.4255, allocations: 29.05 kB / 470.3 MB, free: 11.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004173/0.426, allocations: 163.9 kB / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.4262, allocations: 0.708 MB / 471.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.445e-05/0.4263, allocations: 17 kB / 471.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.318e-05/0.4264, allocations: 23.62 kB / 471.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4264, allocations: 0 / 471.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.4448, allocations: 1.395 MB / 472.6 MB, free: 9.234 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/0.4451, allocations: 178.2 kB / 472.8 MB, free: 9.035 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.478/1.923, allocations: 0 / 472.8 MB, free: 9.035 MB / 346.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat