Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",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.002247/0.002247, 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.596/2.596, 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.001645/0.001645, allocations: 90.28 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.1124/0.1124, allocations: 12.6 MB / 322.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.814e-05, allocations: 4 kB / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 50.38 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4645/0.5694, allocations: 81.2 MB / 0.4986 GB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.5697, allocations: 86.11 kB / 0.4987 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02582/0.5956, allocations: 6.012 MB / 0.5046 GB, free: 10.56 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.544e-06/0.5956, allocations: 0 / 0.5046 GB, free: 10.56 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.387e-05/0.5957, allocations: 3.656 kB / 0.5046 GB, free: 10.56 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007643/0.5965, allocations: 0.499 MB / 0.5051 GB, free: 10.08 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.5965, allocations: 7.781 kB / 0.5051 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.5967, allocations: 31.14 kB / 0.5051 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006384/0.5973, allocations: 297.6 kB / 0.5054 GB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.5973, allocations: 3.953 kB / 0.5054 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.5974, allocations: 7.75 kB / 0.5054 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001618/0.5976, allocations: 41.23 kB / 0.5055 GB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.5979, allocations: 167.1 kB / 0.5056 GB, free: 9.688 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.598, allocations: 3.938 kB / 0.5056 GB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.598, allocations: 3.844 kB / 0.5056 GB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.598, allocations: 0 / 0.5056 GB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/0.5988, allocations: 382.9 kB / 0.506 GB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002213/0.599, allocations: 133.5 kB / 0.5061 GB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.701e-05/0.5991, allocations: 58.08 kB / 0.5062 GB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.5992, allocations: 7.375 kB / 0.5062 GB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.5994, allocations: 72.27 kB / 0.5063 GB, free: 9.164 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.746e-06/0.5994, allocations: 0 / 0.5063 GB, free: 9.164 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.00041/0.5998, allocations: 129.8 kB / 0.5064 GB, free: 9.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/0.5999, allocations: 191 kB / 0.5066 GB, free: 8.879 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004389/0.6003, allocations: 287.6 kB / 0.5068 GB, free: 8.762 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.6004, allocations: 29.64 kB / 0.5069 GB, free: 8.73 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.439e-05/0.6005, allocations: 126.6 kB / 0.507 GB, free: 8.637 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.6005, allocations: 21.58 kB / 0.507 GB, free: 8.625 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.6006, allocations: 4.094 kB / 0.507 GB, free: 8.621 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.887e-05/0.6007, allocations: 333.1 kB / 0.5073 GB, free: 8.301 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.2e-05/0.6007, allocations: 20.19 kB / 0.5073 GB, free: 8.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.6009, allocations: 109.5 kB / 0.5074 GB, free: 8.211 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.831e-05/0.601, allocations: 34.91 kB / 0.5075 GB, free: 8.195 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.601, allocations: 7.781 kB / 0.5075 GB, free: 8.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003634/0.6014, allocations: 125.6 kB / 0.5076 GB, free: 8.133 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.6014, allocations: 8.031 kB / 0.5076 GB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.6015, allocations: 7.656 kB / 0.5076 GB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.6015, allocations: 0 / 0.5076 GB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.6018, allocations: 22.42 kB / 0.5076 GB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.6018, allocations: 3.844 kB / 0.5076 GB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.602, allocations: 7.719 kB / 0.5077 GB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.602, allocations: 3.844 kB / 0.5077 GB, free: 8.117 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001156/0.6021, allocations: 124.6 kB / 0.5078 GB, free: 8 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003004/0.6024, allocations: 131.7 kB / 0.5079 GB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.787e-05/0.6025, allocations: 23.38 kB / 0.5079 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003198/0.6028, allocations: 129.3 kB / 0.508 GB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.6029, allocations: 0 / 0.508 GB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.6029, allocations: 3.75 kB / 0.5081 GB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.6029, allocations: 0 / 0.5081 GB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.6031, allocations: 231 kB / 0.5083 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6032, allocations: 0 / 0.5083 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.6033, allocations: 19.11 kB / 0.5083 GB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.6033, allocations: 4.094 kB / 0.5083 GB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.6034, allocations: 3.844 kB / 0.5083 GB, free: 7.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.6034, allocations: 3.984 kB / 0.5083 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.6034, allocations: 0 / 0.5083 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.6037, allocations: 215.9 kB / 0.5085 GB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.6039, allocations: 125.4 kB / 0.5086 GB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.6039, allocations: 3.938 kB / 0.5086 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.6041, allocations: 3.844 kB / 0.5086 GB, free: 7.371 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.868e-05/0.6042, allocations: 19 kB / 0.5087 GB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.6042, allocations: 7.719 kB / 0.5087 GB, free: 7.359 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003049/0.6045, allocations: 233.3 kB / 0.5089 GB, free: 7.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6045, allocations: 4 kB / 0.5089 GB, free: 7.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004806/0.605, allocations: 49.53 kB / 0.5089 GB, free: 7.242 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001583/0.6066, allocations: 1.21 MB / 0.5101 GB, free: 6.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003401/0.607, allocations: 94.64 kB / 0.5102 GB, free: 6.145 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.607, allocations: 384 / 0.5102 GB, free: 6.145 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.455e-05/0.6071, allocations: 32.67 kB / 0.5102 GB, free: 6.137 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006259/0.6077, allocations: 63.73 kB / 0.5103 GB, free: 6.117 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.6089, allocations: 369.2 kB / 0.5107 GB, free: 5.887 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.6092, allocations: 0.7574 MB / 0.5114 GB, free: 5.148 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.6094, allocations: 32.92 kB / 0.5114 GB, free: 5.137 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.6096, allocations: 69.44 kB / 0.5115 GB, free: 5.117 MB / 330.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6096, allocations: 0 / 0.5115 GB, free: 5.117 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04305/0.6526, allocations: 4.566 MB / 0.5159 GB, free: 2.91 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003313/0.6531, allocations: 205.5 kB / 0.5161 GB, free: 2.707 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.598/3.251, allocations: 0 / 0.5161 GB, free: 2.707 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat