Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009306/0.0009307, allocations: 89.69 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.751e-05/3.752e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1298, allocations: 51.47 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3618/0.4917, allocations: 76.81 MB / 478.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.492, allocations: 75.41 kB / 479 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00162/0.4936, allocations: 0.7559 MB / 479.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4937, allocations: 6.281 kB / 479.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.4937, allocations: 0 / 479.8 MB, free: 11.93 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002496/0.4939, allocations: 328.2 kB / 480.1 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.494, allocations: 12.02 kB / 480.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.636e-05/0.494, allocations: 34.03 kB / 480.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.4941, allocations: 7.281 kB / 480.1 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.4942, allocations: 174.6 kB / 480.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.4943, allocations: 0.8594 kB / 480.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.148e-05/0.4943, allocations: 4 kB / 480.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.4945, allocations: 101.4 kB / 480.4 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.4945, allocations: 0.9688 kB / 480.4 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/0.4945, allocations: 4 kB / 480.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4945, allocations: 4.75 kB / 480.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.505e-05/0.4946, allocations: 6.75 kB / 480.4 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.142e-05/0.4947, allocations: 156.6 kB / 480.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.539e-05/0.4947, allocations: 41.94 kB / 480.6 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.173e-05/0.4948, allocations: 16.2 kB / 480.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.4948, allocations: 3.938 kB / 480.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.4948, allocations: 42.52 kB / 480.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.693e-06/0.4948, allocations: 1.078 kB / 480.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001194/0.4949, allocations: 53.64 kB / 480.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.495, allocations: 54.58 kB / 480.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.238e-05/0.495, allocations: 98 kB / 480.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.862e-06/0.4951, allocations: 25.7 kB / 480.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.954e-05/0.4951, allocations: 86.62 kB / 481 MB, free: 10.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.4951, allocations: 0 / 481 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-06/0.4951, allocations: 4 kB / 481 MB, free: 10.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.166e-05/0.4952, allocations: 318.3 kB / 481.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.086e-05/0.4952, allocations: 4 kB / 481.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.003e-05/0.4952, allocations: 30.81 kB / 481.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.921e-05/0.4952, allocations: 11.73 kB / 481.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4952, allocations: 8 kB / 481.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.582e-05/0.4953, allocations: 54.84 kB / 481.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.4953, allocations: 9.406 kB / 481.4 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.4953, allocations: 3.953 kB / 481.4 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.4953, allocations: 0 / 481.4 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.367e-05/0.4954, allocations: 7.938 kB / 481.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.4954, allocations: 6.344 kB / 481.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.043e-05/0.4954, allocations: 0.9375 kB / 481.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-06/0.4954, allocations: 0 / 481.4 MB, free: 10.12 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (step.counter,$CLKPRE.step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 3.955e-05/0.4955, allocations: 112.9 kB / 481.5 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.084e-05/0.4955, allocations: 50.52 kB / 481.6 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.446e-05/0.4956, allocations: 11.31 kB / 481.6 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.4956, allocations: 3.953 kB / 481.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.4956, allocations: 3.938 kB / 481.6 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.4956, allocations: 0 / 481.6 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.53e-05/0.4957, allocations: 157.3 kB / 481.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4957, allocations: 1.125 kB / 481.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.312e-05/0.4957, allocations: 7.938 kB / 481.8 MB, free: 9.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4957, allocations: 5.125 kB / 481.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.4957, allocations: 0 / 481.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4957, allocations: 0 / 481.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4957, allocations: 3.953 kB / 481.8 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.141e-05/0.4958, allocations: 76.86 kB / 481.9 MB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.4958, allocations: 81.02 kB / 481.9 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.4959, allocations: 5.188 kB / 481.9 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.97e-05/0.4959, allocations: 0 / 481.9 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-06/0.4959, allocations: 4 kB / 482 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.4959, allocations: 9.359 kB / 482 MB, free: 9.523 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.19e-05/0.4959, allocations: 87.2 kB / 482 MB, free: 9.441 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4959, allocations: 0 / 482 MB, free: 9.441 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001771/0.4961, allocations: 4 kB / 482 MB, free: 9.438 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.000278/0.4964, allocations: 0.6252 MB / 482.7 MB, free: 8.801 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.298e-05/0.4965, allocations: 19.25 kB / 482.7 MB, free: 8.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4965, allocations: 0 / 482.7 MB, free: 8.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.4965, allocations: 0 / 482.7 MB, free: 8.785 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.4967, allocations: 21.42 kB / 482.7 MB, free: 8.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002514/0.4969, allocations: 109 kB / 482.8 MB, free: 8.637 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.497, allocations: 0.6809 MB / 483.5 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.635e-05/0.4971, allocations: 4.25 kB / 483.5 MB, free: 7.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.295e-05/0.4971, allocations: 18.8 kB / 483.5 MB, free: 7.91 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4971, allocations: 0 / 483.5 MB, free: 7.91 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01064/0.5077, allocations: 1.072 MB / 484.6 MB, free: 7.066 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.5079, allocations: 175.2 kB / 484.8 MB, free: 6.844 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.471/1.979, allocations: 0 / 484.8 MB, free: 6.844 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat