Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002112/0.002112, allocations: 181.1 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.255/2.255, allocations: 205.2 MB / 219 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001088, allocations: 94.59 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1276/0.1276, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.762e-05/3.767e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09774, allocations: 50.38 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4905/0.5883, allocations: 77.24 MB / 0.5017 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.5886, allocations: 74.83 kB / 0.5017 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002494/0.5911, allocations: 0.7612 MB / 0.5025 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5912, allocations: 0 / 0.5025 GB, free: 11.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.5912, allocations: 0 / 0.5025 GB, free: 11.7 MB / 330.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.000324/0.5915, allocations: 342.3 kB / 0.5028 GB, free: 11.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.5916, allocations: 7.562 kB / 0.5028 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.5916, allocations: 36.53 kB / 0.5029 GB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.5917, allocations: 4 kB / 0.5029 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.5918, allocations: 183.6 kB / 0.503 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.5919, allocations: 3.953 kB / 0.503 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.5919, allocations: 3.844 kB / 0.503 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.5921, allocations: 89.52 kB / 0.5031 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.5922, allocations: 0 / 0.5031 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.619e-06/0.5922, allocations: 0 / 0.5031 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.5922, allocations: 7.844 kB / 0.5031 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.051e-05/0.5923, allocations: 10.05 kB / 0.5031 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001217/0.5924, allocations: 153.3 kB / 0.5033 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.5925, allocations: 46.58 kB / 0.5033 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.176e-05/0.5926, allocations: 26.97 kB / 0.5034 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.5926, allocations: 3.938 kB / 0.5034 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.5927, allocations: 37.33 kB / 0.5034 GB, free: 10.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.623e-06/0.5927, allocations: 0 / 0.5034 GB, free: 10.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001523/0.5928, allocations: 50.31 kB / 0.5035 GB, free: 10.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.5929, allocations: 59.19 kB / 0.5035 GB, free: 10.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.061e-05/0.593, allocations: 99.58 kB / 0.5036 GB, free: 10.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.593, allocations: 25.7 kB / 0.5036 GB, free: 10.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.49e-05/0.593, allocations: 83.08 kB / 0.5037 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.593, allocations: 7.75 kB / 0.5037 GB, free: 10.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.5931, allocations: 7.125 kB / 0.5037 GB, free: 10.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.799e-05/0.5931, allocations: 313.9 kB / 0.504 GB, free: 10.14 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.81e-05/0.5932, allocations: 7.531 kB / 0.504 GB, free: 10.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.982e-05/0.5932, allocations: 23.28 kB / 0.5041 GB, free: 10.11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.116e-05/0.5932, allocations: 14.91 kB / 0.5041 GB, free: 10.11 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.5932, allocations: 0 / 0.5041 GB, free: 10.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.956e-05/0.5934, allocations: 60.98 kB / 0.5041 GB, free: 10.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.5934, allocations: 7.766 kB / 0.5041 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.5934, allocations: 2.375 kB / 0.5041 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.5934, allocations: 3.844 kB / 0.5041 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.257e-05/0.5935, allocations: 13.56 kB / 0.5041 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.5935, allocations: 0 / 0.5041 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.784e-05/0.5936, allocations: 0 / 0.5041 GB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.5936, allocations: 7.969 kB / 0.5042 GB, free: 10.06 MB / 330.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 5.757e-05/0.5937, allocations: 108.6 kB / 0.5043 GB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.5937, allocations: 53.5 kB / 0.5043 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.5938, allocations: 13.94 kB / 0.5043 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.5938, allocations: 3.844 kB / 0.5043 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5938, allocations: 0 / 0.5043 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.5938, allocations: 0 / 0.5043 GB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.955e-05/0.5939, allocations: 158.1 kB / 0.5045 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5939, allocations: 0 / 0.5045 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.5941, allocations: 14.17 kB / 0.5045 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.5941, allocations: 0 / 0.5045 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.5941, allocations: 2.438 kB / 0.5045 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.5941, allocations: 3.953 kB / 0.5045 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5941, allocations: 3.844 kB / 0.5045 GB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001109/0.5942, allocations: 73.56 kB / 0.5046 GB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.959e-05/0.5943, allocations: 86.14 kB / 0.5047 GB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.5943, allocations: 4.312 kB / 0.5047 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.7e-05/0.5944, allocations: 10.23 kB / 0.5047 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.362e-06/0.5944, allocations: 7.953 kB / 0.5047 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.5944, allocations: 0 / 0.5047 GB, free: 9.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.656e-05/0.5944, allocations: 86.03 kB / 0.5048 GB, free: 9.445 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5945, allocations: 0 / 0.5048 GB, free: 9.445 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000233/0.5947, allocations: 6.719 kB / 0.5048 GB, free: 9.445 MB / 330.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.0003541/0.5951, allocations: 0.6214 MB / 0.5054 GB, free: 8.852 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.5952, allocations: 18.97 kB / 0.5054 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5952, allocations: 0 / 0.5054 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.172e-06/0.5952, allocations: 0 / 0.5054 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.5955, allocations: 29 kB / 0.5054 GB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/0.5958, allocations: 110.6 kB / 0.5055 GB, free: 8.727 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.596, allocations: 0.6821 MB / 0.5062 GB, free: 8.031 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.505e-05/0.596, allocations: 8 kB / 0.5062 GB, free: 8.023 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.5961, allocations: 16.81 kB / 0.5062 GB, free: 8.02 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.5961, allocations: 0 / 0.5062 GB, free: 8.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.6206, allocations: 1.135 MB / 0.5073 GB, free: 7.734 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002871/0.621, allocations: 182.2 kB / 0.5075 GB, free: 7.512 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.407/3.028, allocations: 3.906 kB / 0.5075 GB, free: 7.508 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat does not exist to compare? outputFormat=mat