Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 198.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 227.2 MB / 245 MB, free: 5.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008886/0.0008886, allocations: 112.2 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001942/0.0001942, allocations: 4 kB / 358 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1714, allocations: 51.48 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08255/0.254, allocations: 77.33 MB / 486.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.2543, allocations: 75.95 kB / 486.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002748/0.2571, allocations: 1.165 MB / 488.1 MB, free: 12.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2571, allocations: 0 / 488.1 MB, free: 12.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2571, allocations: 1.125 kB / 488.1 MB, free: 12.02 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003305/0.2574, allocations: 362.6 kB / 488.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2575, allocations: 8.031 kB / 488.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.784e-05/0.2575, allocations: 42.5 kB / 488.5 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.293e-05/0.2575, allocations: 3.906 kB / 488.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.2577, allocations: 187.7 kB / 488.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.2577, allocations: 4 kB / 488.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.2577, allocations: 7.953 kB / 488.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002383/0.258, allocations: 111.5 kB / 488.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.258, allocations: 0 / 488.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.258, allocations: 4 kB / 488.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.258, allocations: 4 kB / 488.8 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.442e-05/0.2581, allocations: 27.86 kB / 488.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003069/0.2584, allocations: 265.8 kB / 489.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.2586, allocations: 146.2 kB / 489.2 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.2587, allocations: 3.984 kB / 489.2 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.2587, allocations: 30.56 kB / 489.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.684e-06/0.2587, allocations: 0 / 489.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002184/0.2589, allocations: 89.67 kB / 489.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.259, allocations: 85.09 kB / 489.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.641e-05/0.2591, allocations: 117.3 kB / 489.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.2591, allocations: 25.7 kB / 489.6 MB, free: 10.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.549e-05/0.2592, allocations: 92.03 kB / 489.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.107e-06/0.2592, allocations: 8.109 kB / 489.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-06/0.2592, allocations: 4 kB / 489.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.905e-05/0.2593, allocations: 318.8 kB / 490 MB, free: 9.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.182e-05/0.2593, allocations: 11.98 kB / 490 MB, free: 9.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.491e-05/0.2594, allocations: 35.42 kB / 490 MB, free: 9.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.136e-05/0.2594, allocations: 16 kB / 490 MB, free: 9.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2594, allocations: 0 / 490 MB, free: 9.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001268/0.2596, allocations: 73.56 kB / 490.1 MB, free: 9.699 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.2596, allocations: 4 kB / 490.1 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2596, allocations: 4.125 kB / 490.1 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2596, allocations: 4 kB / 490.1 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.566e-05/0.2597, allocations: 11.94 kB / 490.1 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2597, allocations: 0 / 490.1 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.584e-05/0.2597, allocations: 11.92 kB / 490.1 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.2598, allocations: 0 / 490.1 MB, free: 9.664 MB / 362.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: 4 (sample1.u,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 7.192e-05/0.2598, allocations: 117.8 kB / 490.3 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.472e-05/0.2599, allocations: 53.55 kB / 490.3 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.985e-05/0.26, allocations: 12.25 kB / 490.3 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.26, allocations: 0 / 490.3 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.26, allocations: 4 kB / 490.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.26, allocations: 4 kB / 490.3 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.2601, allocations: 169.6 kB / 490.5 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2601, allocations: 0 / 490.5 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.058e-05/0.2602, allocations: 11.98 kB / 490.5 MB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.2602, allocations: 7.953 kB / 490.5 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.71e-06/0.2602, allocations: 0 / 490.5 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2602, allocations: 0 / 490.5 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2602, allocations: 4 kB / 490.5 MB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.2604, allocations: 178 kB / 490.7 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/0.2605, allocations: 96.95 kB / 490.8 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.2605, allocations: 0 / 490.8 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.925e-05/0.2606, allocations: 8 kB / 490.8 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.696e-05/0.2606, allocations: 3.938 kB / 490.8 MB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.2606, allocations: 3.938 kB / 490.8 MB, free: 8.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.712e-05/0.2607, allocations: 107.2 kB / 490.9 MB, free: 8.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2607, allocations: 0 / 490.9 MB, free: 8.781 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002054/0.2609, allocations: 4 kB / 490.9 MB, free: 8.777 MB / 362.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: 4 (sample1.u,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Number of clocked 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.0004189/0.2613, allocations: 0.7864 MB / 491.7 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001099/0.2614, allocations: 36.53 kB / 491.7 MB, free: 7.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2615, allocations: 3.938 kB / 491.7 MB, free: 7.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.577e-05/0.2615, allocations: 15.98 kB / 491.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.2617, allocations: 30.14 kB / 491.8 MB, free: 7.875 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008053/0.2625, allocations: 0.9074 MB / 492.7 MB, free: 6.902 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.2628, allocations: 0.6926 MB / 493.4 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.03e-05/0.2628, allocations: 0 / 493.4 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.2628, allocations: 19.42 kB / 493.4 MB, free: 6.164 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2628, allocations: 0 / 493.4 MB, free: 6.164 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01062/0.2735, allocations: 1.202 MB / 494.6 MB, free: 5.105 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/0.2737, allocations: 193.5 kB / 494.8 MB, free: 4.867 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.39/1.663, allocations: 3.938 kB / 494.8 MB, free: 4.863 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat does not exist to compare? outputFormat=mat