Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008299/0.0008299, allocations: 106 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003006, allocations: 4 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1961, allocations: 51.49 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08509/0.2813, allocations: 77.42 MB / 486.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.2816, allocations: 78.36 kB / 487 MB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003186/0.2848, allocations: 1.303 MB / 488.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2848, allocations: 0 / 488.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.2848, allocations: 8.594 kB / 488.3 MB, free: 11.78 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003345/0.2851, allocations: 371.7 kB / 488.7 MB, free: 11.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.2852, allocations: 8.031 kB / 488.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.499e-05/0.2852, allocations: 31.09 kB / 488.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.906e-05/0.2853, allocations: 17.78 kB / 488.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.2854, allocations: 186.8 kB / 488.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.2855, allocations: 8 kB / 488.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.2855, allocations: 7.953 kB / 488.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.2857, allocations: 135.3 kB / 489.1 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.952e-06/0.2857, allocations: 3.938 kB / 489.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.2858, allocations: 0 / 489.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-06/0.2858, allocations: 0 / 489.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.198e-05/0.2858, allocations: 19.98 kB / 489.1 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001413/0.286, allocations: 181.6 kB / 489.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00013/0.2861, allocations: 74.75 kB / 489.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.368e-06/0.2861, allocations: 7.891 kB / 489.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.2861, allocations: 34.56 kB / 489.4 MB, free: 10.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.2862, allocations: 4 kB / 489.4 MB, free: 10.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001917/0.2863, allocations: 97.72 kB / 489.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.2864, allocations: 63.34 kB / 489.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.2865, allocations: 131.7 kB / 489.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.2865, allocations: 29.7 kB / 489.7 MB, free: 10.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.87e-05/0.2866, allocations: 84.14 kB / 489.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.181e-05/0.2866, allocations: 7.984 kB / 489.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.2866, allocations: 4 kB / 489.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.755e-05/0.2867, allocations: 314.8 kB / 490.1 MB, free: 9.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.983e-05/0.2867, allocations: 11.92 kB / 490.1 MB, free: 9.766 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.836e-05/0.2868, allocations: 62.88 kB / 490.2 MB, free: 9.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.178e-05/0.2868, allocations: 15.98 kB / 490.2 MB, free: 9.664 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.2868, allocations: 4 kB / 490.2 MB, free: 9.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001137/0.287, allocations: 93.41 kB / 490.3 MB, free: 9.562 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.287, allocations: 7.953 kB / 490.3 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.287, allocations: 4 kB / 490.3 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.287, allocations: 4 kB / 490.3 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.245e-05/0.2871, allocations: 19.92 kB / 490.3 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.2871, allocations: 256 / 490.3 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.332e-05/0.2871, allocations: 11.94 kB / 490.3 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.2871, allocations: 4 kB / 490.3 MB, free: 9.512 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.27e-05/0.2872, allocations: 131.4 kB / 490.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.2873, allocations: 81.53 kB / 490.5 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.2874, allocations: 16.67 kB / 490.6 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2874, allocations: 4 kB / 490.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2874, allocations: 0 / 490.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2874, allocations: 3.984 kB / 490.6 MB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001052/0.2875, allocations: 169.7 kB / 490.7 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2875, allocations: 0 / 490.7 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.382e-05/0.2876, allocations: 15.98 kB / 490.7 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2876, allocations: 0 / 490.7 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.2876, allocations: 0 / 490.7 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2876, allocations: 7.953 kB / 490.8 MB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2876, allocations: 0 / 490.8 MB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.2878, allocations: 116.8 kB / 490.9 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.817e-05/0.2878, allocations: 101 kB / 491 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.2879, allocations: 0 / 491 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.352e-05/0.2879, allocations: 4 kB / 491 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-06/0.2879, allocations: 8.078 kB / 491 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.2879, allocations: 4 kB / 491 MB, free: 8.762 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.11e-05/0.288, allocations: 111.2 kB / 491.1 MB, free: 8.652 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.288, allocations: 0 / 491.1 MB, free: 8.652 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001851/0.2882, allocations: 8 kB / 491.1 MB, free: 8.645 MB / 362.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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0004061/0.2886, allocations: 0.6805 MB / 491.8 MB, free: 7.941 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.71e-05/0.2887, allocations: 47.92 kB / 491.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2887, allocations: 0 / 491.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.22e-07/0.2887, allocations: 0 / 491.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.2889, allocations: 54.58 kB / 491.9 MB, free: 7.844 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008284/0.2898, allocations: 1.583 MB / 493.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.29, allocations: 0.7004 MB / 494.2 MB, free: 5.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.395e-05/0.29, allocations: 4.672 kB / 494.2 MB, free: 5.449 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.29, allocations: 19.5 kB / 494.2 MB, free: 5.43 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2901, allocations: 3.938 kB / 494.2 MB, free: 5.426 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01001/0.3001, allocations: 1.54 MB / 495.7 MB, free: 4.035 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/0.3002, allocations: 188.2 kB / 495.9 MB, free: 3.801 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.384/1.685, allocations: 7.938 kB / 495.9 MB, free: 3.793 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat