Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.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.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",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.002397/0.002397, allocations: 181.4 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.229/2.229, allocations: 205.2 MB / 219 MB, free: 9.195 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.001996/0.001995, allocations: 98.39 kB / 267.1 MB, free: 9.273 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.1312/0.1312, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.981e-05/3.991e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0963/0.09637, allocations: 50.38 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4841/0.5806, allocations: 77.74 MB / 0.5022 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.5809, allocations: 74.59 kB / 0.5022 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003942/0.5849, allocations: 1.214 MB / 0.5034 GB, free: 11.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5849, allocations: 0 / 0.5034 GB, free: 11.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.5849, allocations: 3.875 kB / 0.5034 GB, free: 11.45 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002898/0.5852, allocations: 342.9 kB / 0.5038 GB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.5853, allocations: 11.41 kB / 0.5038 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.485e-05/0.5853, allocations: 36.12 kB / 0.5038 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.127e-05/0.5854, allocations: 11.03 kB / 0.5038 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.5856, allocations: 187 kB / 0.504 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.5856, allocations: 7.891 kB / 0.504 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.5856, allocations: 3.812 kB / 0.504 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.586, allocations: 129.4 kB / 0.5041 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.586, allocations: 0 / 0.5041 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.586, allocations: 3.812 kB / 0.5041 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.586, allocations: 0 / 0.5041 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.714e-05/0.5861, allocations: 15.12 kB / 0.5041 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001317/0.5862, allocations: 169.8 kB / 0.5043 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001605/0.5864, allocations: 72.31 kB / 0.5044 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/0.5865, allocations: 38.27 kB / 0.5044 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.5865, allocations: 0 / 0.5044 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.5865, allocations: 34.5 kB / 0.5044 GB, free: 10.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 2.625e-06/0.5866, allocations: 0 / 0.5044 GB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001863/0.5867, allocations: 85.25 kB / 0.5045 GB, free: 10.47 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.5868, allocations: 56.7 kB / 0.5046 GB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.5869, allocations: 128.2 kB / 0.5047 GB, free: 10.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.587, allocations: 29.27 kB / 0.5047 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.337e-05/0.587, allocations: 83.64 kB / 0.5048 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.587, allocations: 2.719 kB / 0.5048 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.587, allocations: 0 / 0.5048 GB, free: 10.2 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.126e-05/0.5871, allocations: 320.7 kB / 0.5051 GB, free: 9.887 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.592e-05/0.5871, allocations: 11.41 kB / 0.5051 GB, free: 9.883 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.025e-05/0.5872, allocations: 61.05 kB / 0.5052 GB, free: 9.816 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.363e-05/0.5873, allocations: 17.56 kB / 0.5052 GB, free: 9.812 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.5873, allocations: 3.906 kB / 0.5052 GB, free: 9.812 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001502/0.5874, allocations: 88.05 kB / 0.5053 GB, free: 9.766 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.5875, allocations: 7.688 kB / 0.5053 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5875, allocations: 256 / 0.5053 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.5875, allocations: 7.844 kB / 0.5053 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.483e-05/0.5875, allocations: 6.375 kB / 0.5053 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.5876, allocations: 0 / 0.5053 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.602e-05/0.5876, allocations: 3.875 kB / 0.5053 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.5876, allocations: 7.656 kB / 0.5053 GB, free: 9.762 MB / 330.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 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * 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 6.153e-05/0.5877, allocations: 112.5 kB / 0.5054 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.5878, allocations: 70.44 kB / 0.5055 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.5879, allocations: 14.58 kB / 0.5055 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.5879, allocations: 0 / 0.5055 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5879, allocations: 4 kB / 0.5055 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.5879, allocations: 0.875 kB / 0.5055 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.588, allocations: 170.9 kB / 0.5057 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.588, allocations: 0 / 0.5057 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.764e-05/0.5881, allocations: 7.188 kB / 0.5057 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.5881, allocations: 0 / 0.5057 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.5881, allocations: 3.953 kB / 0.5057 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.5881, allocations: 7.781 kB / 0.5057 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.5881, allocations: 2.344 kB / 0.5057 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001339/0.5883, allocations: 93.52 kB / 0.5058 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.224e-05/0.5883, allocations: 92.97 kB / 0.5059 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.5884, allocations: 7.062 kB / 0.5059 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.671e-05/0.5884, allocations: 11.83 kB / 0.5059 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-06/0.5884, allocations: 0 / 0.5059 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.5884, allocations: 0 / 0.5059 GB, free: 9.227 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.749e-05/0.5885, allocations: 101.7 kB / 0.506 GB, free: 9.152 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5885, allocations: 0 / 0.506 GB, free: 9.152 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002477/0.5888, allocations: 10.44 kB / 0.506 GB, free: 9.152 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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,xor.u1,xor.u2,xor.y,integerConstant.y) * Number of discrete states: 0 () * 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.0003998/0.5892, allocations: 0.6595 MB / 0.5066 GB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.5893, allocations: 36.75 kB / 0.5067 GB, free: 8.543 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5894, allocations: 0.5625 kB / 0.5067 GB, free: 8.543 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.805e-06/0.5894, allocations: 0 / 0.5067 GB, free: 8.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.5897, allocations: 49.03 kB / 0.5067 GB, free: 8.531 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004173/0.5901, allocations: 147 kB / 0.5069 GB, free: 8.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001555/0.5903, allocations: 0.696 MB / 0.5075 GB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.993e-05/0.5903, allocations: 6.797 kB / 0.5076 GB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.5904, allocations: 18 kB / 0.5076 GB, free: 7.707 MB / 330.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5904, allocations: 0 / 0.5076 GB, free: 7.707 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02467/0.6151, allocations: 1.46 MB / 0.509 GB, free: 7.387 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002548/0.6154, allocations: 176.2 kB / 0.5092 GB, free: 7.168 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/3.033, allocations: 3.938 kB / 0.5092 GB, free: 7.164 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat