Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.001586/0.001585, allocations: 183.6 kB / 15.8 MB, free: 6.316 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.063/2.063, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001175/0.001175, allocations: 86.81 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09633/0.09633, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009343/0.0009345, allocations: 12.44 kB / 392.1 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.091/0.09197, allocations: 50.37 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1405/0.2325, allocations: 77.86 MB / 0.5081 GB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/0.2329, allocations: 79.95 kB / 0.5082 GB, free: 12.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00505/0.238, allocations: 1.273 MB / 0.5094 GB, free: 11.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.238, allocations: 0 / 0.5094 GB, free: 11.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.2381, allocations: 7.938 kB / 0.5095 GB, free: 11.47 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.0004437/0.2385, allocations: 367 kB / 0.5098 GB, free: 11.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.2386, allocations: 12.03 kB / 0.5098 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.497e-05/0.2386, allocations: 34.56 kB / 0.5099 GB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.573e-05/0.2387, allocations: 7.906 kB / 0.5099 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.239, allocations: 198.8 kB / 0.51 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.239, allocations: 11.95 kB / 0.5101 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.239, allocations: 0 / 0.5101 GB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.2394, allocations: 143.2 kB / 0.5102 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2394, allocations: 0 / 0.5102 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.2394, allocations: 0 / 0.5102 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2395, allocations: 0 / 0.5102 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.033e-05/0.2396, allocations: 27.92 kB / 0.5102 GB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002009/0.2398, allocations: 177.5 kB / 0.5104 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.24, allocations: 78.7 kB / 0.5105 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.24, allocations: 0 / 0.5105 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.2401, allocations: 34.5 kB / 0.5105 GB, free: 10.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.2401, allocations: 0 / 0.5105 GB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002885/0.2404, allocations: 101.8 kB / 0.5106 GB, free: 10.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.2405, allocations: 59.48 kB / 0.5107 GB, free: 10.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.2406, allocations: 124.1 kB / 0.5108 GB, free: 9.922 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.2407, allocations: 29.7 kB / 0.5108 GB, free: 9.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.124e-05/0.2407, allocations: 88.14 kB / 0.5109 GB, free: 9.797 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.2408, allocations: 3.984 kB / 0.5109 GB, free: 9.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.2408, allocations: 0 / 0.5109 GB, free: 9.793 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.2409, allocations: 318.8 kB / 0.5112 GB, free: 9.473 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.587e-05/0.241, allocations: 15.98 kB / 0.5112 GB, free: 9.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.1e-05/0.2411, allocations: 62.73 kB / 0.5113 GB, free: 9.371 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.875e-05/0.2411, allocations: 23.98 kB / 0.5113 GB, free: 9.348 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2412, allocations: 0 / 0.5113 GB, free: 9.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001985/0.2414, allocations: 97.36 kB / 0.5114 GB, free: 9.246 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.2414, allocations: 4 kB / 0.5114 GB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.2414, allocations: 4 kB / 0.5114 GB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2414, allocations: 256 / 0.5114 GB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.2416, allocations: 19.98 kB / 0.5114 GB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.2416, allocations: 7.938 kB / 0.5114 GB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.7e-05/0.2417, allocations: 4.188 kB / 0.5114 GB, free: 9.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.2417, allocations: 8 kB / 0.5114 GB, free: 9.199 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 0.0001344/0.2418, allocations: 132.4 kB / 0.5116 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.242, allocations: 93.58 kB / 0.5116 GB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.2421, allocations: 16.66 kB / 0.5117 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.2421, allocations: 0 / 0.5117 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2421, allocations: 4 kB / 0.5117 GB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2421, allocations: 7.984 kB / 0.5117 GB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001465/0.2423, allocations: 169.7 kB / 0.5118 GB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.2423, allocations: 0 / 0.5118 GB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.2424, allocations: 19.92 kB / 0.5119 GB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.2424, allocations: 0 / 0.5119 GB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.2425, allocations: 3.953 kB / 0.5119 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.2425, allocations: 0 / 0.5119 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2425, allocations: 0 / 0.5119 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.2427, allocations: 109 kB / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.627e-05/0.2428, allocations: 97 kB / 0.5121 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.2428, allocations: 0 / 0.5121 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.784e-05/0.2429, allocations: 11.89 kB / 0.5121 GB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.581e-06/0.2429, allocations: 4 kB / 0.5121 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.2429, allocations: 0 / 0.5121 GB, free: 8.445 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.243, allocations: 107.2 kB / 0.5122 GB, free: 8.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.243, allocations: 0 / 0.5122 GB, free: 8.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002592/0.2433, allocations: 8 kB / 0.5122 GB, free: 8.332 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.0006541/0.244, allocations: 0.6724 MB / 0.5128 GB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001683/0.2442, allocations: 47.86 kB / 0.5129 GB, free: 7.582 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2442, allocations: 0.5625 kB / 0.5129 GB, free: 7.582 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.012e-06/0.2442, allocations: 4 kB / 0.5129 GB, free: 7.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.2445, allocations: 47.72 kB / 0.5129 GB, free: 7.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.246, allocations: 1.579 MB / 0.5145 GB, free: 5.875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.2464, allocations: 0.7016 MB / 0.5152 GB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.668e-05/0.2465, allocations: 4.672 kB / 0.5152 GB, free: 5.141 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.521e-05/0.2465, allocations: 19.5 kB / 0.5152 GB, free: 5.121 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.2466, allocations: 4 kB / 0.5152 GB, free: 5.117 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.2724, allocations: 1.566 MB / 0.5167 GB, free: 3.562 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003128/0.2728, allocations: 198 kB / 0.5169 GB, free: 3.328 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.307/2.58, allocations: 0 / 0.5169 GB, free: 3.328 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat