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.002188/0.002188, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.17/2.17, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001146/0.001145, allocations: 91.67 kB / 261.8 MB, free: 13.44 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.1139/0.1139, allocations: 12.6 MB / 322.3 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.04e-05/2.05e-05, allocations: 4 kB / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 50.37 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4331/0.5373, allocations: 77.09 MB / 0.4946 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.5377, allocations: 75.11 kB / 0.4947 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004354/0.542, allocations: 1.269 MB / 0.4959 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5421, allocations: 0 / 0.4959 GB, free: 11.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.5421, allocations: 6.812 kB / 0.496 GB, free: 11.57 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.0003199/0.5424, allocations: 350.9 kB / 0.4963 GB, free: 11.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.5425, allocations: 7.688 kB / 0.4963 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.316e-05/0.5426, allocations: 15.5 kB / 0.4963 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.5428, allocations: 189.2 kB / 0.4965 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.5428, allocations: 4.656 kB / 0.4965 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.5428, allocations: 7.859 kB / 0.4965 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001096/0.543, allocations: 30.36 kB / 0.4965 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.5432, allocations: 117.1 kB / 0.4966 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.5433, allocations: 0 / 0.4966 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.5433, allocations: 3.938 kB / 0.4966 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.5433, allocations: 0 / 0.4966 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001249/0.5434, allocations: 146.8 kB / 0.4968 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.5436, allocations: 79.53 kB / 0.4969 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.618e-05/0.5437, allocations: 41.91 kB / 0.4969 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.5438, allocations: 3.953 kB / 0.4969 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.5438, allocations: 30.56 kB / 0.4969 GB, free: 10.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.853e-06/0.5438, allocations: 0 / 0.4969 GB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001922/0.544, allocations: 71.75 kB / 0.497 GB, free: 10.67 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.544, allocations: 63.19 kB / 0.4971 GB, free: 10.6 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.5442, allocations: 123.6 kB / 0.4972 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.5442, allocations: 25.7 kB / 0.4972 GB, free: 10.47 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.262e-05/0.5442, allocations: 91.31 kB / 0.4973 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.5443, allocations: 3.125 kB / 0.4973 GB, free: 10.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.5443, allocations: 0 / 0.4973 GB, free: 10.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.502e-05/0.5444, allocations: 320.6 kB / 0.4976 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.384e-05/0.5444, allocations: 7.281 kB / 0.4976 GB, free: 10.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.913e-05/0.5445, allocations: 56.06 kB / 0.4977 GB, free: 10.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.412e-05/0.5445, allocations: 25.25 kB / 0.4977 GB, free: 10 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5445, allocations: 0 / 0.4977 GB, free: 10 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001449/0.5447, allocations: 83.59 kB / 0.4978 GB, free: 9.957 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.5447, allocations: 3.844 kB / 0.4978 GB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.5447, allocations: 7.828 kB / 0.4978 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.5447, allocations: 0 / 0.4978 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.5449, allocations: 17.28 kB / 0.4978 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.5449, allocations: 10.98 kB / 0.4978 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.889e-05/0.545, allocations: 3.906 kB / 0.4978 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.545, allocations: 6.844 kB / 0.4978 GB, free: 9.945 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 (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 () * 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 7.619e-05/0.5451, allocations: 115.5 kB / 0.4979 GB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001332/0.5452, allocations: 74.78 kB / 0.498 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.766e-05/0.5452, allocations: 15.36 kB / 0.498 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.211e-05/0.5453, allocations: 15.77 kB / 0.498 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.5453, allocations: 3.906 kB / 0.498 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.5453, allocations: 4 kB / 0.498 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.5453, allocations: 2.484 kB / 0.498 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.386e-05/0.5454, allocations: 142 kB / 0.4982 GB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5454, allocations: 0 / 0.4982 GB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.5456, allocations: 21.36 kB / 0.4982 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.5456, allocations: 0.875 kB / 0.4982 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.5456, allocations: 3.953 kB / 0.4982 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.5456, allocations: 0 / 0.4982 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5456, allocations: 0 / 0.4982 GB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.5458, allocations: 105.4 kB / 0.4983 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.241e-05/0.5458, allocations: 104.7 kB / 0.4984 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.5459, allocations: 0 / 0.4984 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.745e-05/0.5459, allocations: 8.828 kB / 0.4984 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-06/0.5459, allocations: 0 / 0.4984 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-06/0.546, allocations: 3.875 kB / 0.4984 GB, free: 9.438 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.701e-05/0.546, allocations: 103.1 kB / 0.4985 GB, free: 9.363 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.546, allocations: 0 / 0.4985 GB, free: 9.363 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002654/0.5463, allocations: 7.812 kB / 0.4985 GB, free: 9.363 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,const.y,sum.u[1],sum.u[2],sum.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.000437/0.5468, allocations: 0.666 MB / 0.4992 GB, free: 8.758 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001316/0.5469, allocations: 39.56 kB / 0.4992 GB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5469, allocations: 3.844 kB / 0.4992 GB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.393e-06/0.5469, allocations: 0.5625 kB / 0.4992 GB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.5473, allocations: 45.55 kB / 0.4993 GB, free: 8.742 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004778/0.5478, allocations: 155 kB / 0.4994 GB, free: 8.617 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.548, allocations: 0.702 MB / 0.5001 GB, free: 7.922 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.667e-05/0.548, allocations: 4.359 kB / 0.5001 GB, free: 7.922 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.48e-05/0.5481, allocations: 20.5 kB / 0.5001 GB, free: 7.914 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5481, allocations: 3.938 kB / 0.5001 GB, free: 7.91 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03264/0.5807, allocations: 1.223 MB / 0.5013 GB, free: 7.816 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002851/0.5811, allocations: 168.8 kB / 0.5015 GB, free: 7.625 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.53/3.112, allocations: 0 / 0.5015 GB, free: 7.625 MB / 330.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