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.002734/0.002733, 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.218/2.218, 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.00153/0.00153, allocations: 84.81 kB / 267.1 MB, free: 9.262 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.1341/0.1341, allocations: 12.59 MB / 327.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.026e-05/4.036e-05, allocations: 7.984 kB / 386.1 MB, free: 69.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 50.36 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.5632, allocations: 81.88 MB / 0.5062 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.5635, allocations: 79.42 kB / 0.5063 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02394/0.5875, allocations: 6.056 MB / 0.5122 GB, free: 9.617 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.5875, allocations: 0 / 0.5122 GB, free: 9.617 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.345e-05/0.5876, allocations: 7.781 kB / 0.5122 GB, free: 9.613 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.0006893/0.5883, allocations: 0.4939 MB / 0.5127 GB, free: 9.137 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.5883, allocations: 7.5 kB / 0.5127 GB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.1e-05/0.5884, allocations: 49.58 kB / 0.5127 GB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.768e-05/0.5885, allocations: 23.25 kB / 0.5128 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.589, allocations: 292.2 kB / 0.513 GB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.5891, allocations: 10.67 kB / 0.513 GB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.5891, allocations: 11.58 kB / 0.5131 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.5895, allocations: 170.9 kB / 0.5132 GB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.5895, allocations: 3.844 kB / 0.5132 GB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.5896, allocations: 3.312 kB / 0.5132 GB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.5896, allocations: 0 / 0.5132 GB, free: 8.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.5897, allocations: 41.39 kB / 0.5133 GB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006251/0.5903, allocations: 419.2 kB / 0.5137 GB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.5906, allocations: 143.3 kB / 0.5138 GB, free: 8.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.5907, allocations: 55.41 kB / 0.5139 GB, free: 8.199 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.5908, allocations: 0 / 0.5139 GB, free: 8.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.5909, allocations: 84.47 kB / 0.5139 GB, free: 8.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.255e-06/0.5909, allocations: 0 / 0.5139 GB, free: 8.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003681/0.5913, allocations: 135.5 kB / 0.5141 GB, free: 8.074 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.5914, allocations: 195 kB / 0.5143 GB, free: 7.848 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004332/0.5919, allocations: 300.2 kB / 0.5145 GB, free: 7.723 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.5919, allocations: 32.23 kB / 0.5146 GB, free: 7.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.555e-05/0.592, allocations: 131.1 kB / 0.5147 GB, free: 7.594 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.592, allocations: 19.48 kB / 0.5147 GB, free: 7.582 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.5921, allocations: 0 / 0.5147 GB, free: 7.582 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.771e-05/0.5921, allocations: 337.1 kB / 0.515 GB, free: 7.262 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.567e-05/0.5922, allocations: 25.7 kB / 0.5151 GB, free: 7.258 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.5924, allocations: 107.5 kB / 0.5152 GB, free: 7.168 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.006e-05/0.5925, allocations: 33.39 kB / 0.5152 GB, free: 7.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5925, allocations: 3.844 kB / 0.5152 GB, free: 7.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002776/0.5928, allocations: 139.2 kB / 0.5153 GB, free: 7.094 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.5928, allocations: 3.875 kB / 0.5153 GB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.5928, allocations: 3.844 kB / 0.5153 GB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.5929, allocations: 0 / 0.5153 GB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.5931, allocations: 30.61 kB / 0.5154 GB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.5931, allocations: 3.875 kB / 0.5154 GB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.5933, allocations: 11.69 kB / 0.5154 GB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.5933, allocations: 3.906 kB / 0.5154 GB, free: 7.078 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 8.54e-05/0.5934, allocations: 127.1 kB / 0.5155 GB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.5935, allocations: 79.22 kB / 0.5156 GB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.5938, allocations: 124.6 kB / 0.5157 GB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.5938, allocations: 3.844 kB / 0.5157 GB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5939, allocations: 0 / 0.5157 GB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5939, allocations: 3.875 kB / 0.5157 GB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.5941, allocations: 262.2 kB / 0.516 GB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5942, allocations: 4 kB / 0.516 GB, free: 6.621 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.5943, allocations: 19.36 kB / 0.516 GB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5943, allocations: 0 / 0.516 GB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.5943, allocations: 3.844 kB / 0.516 GB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.5943, allocations: 3.938 kB / 0.516 GB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5944, allocations: 0 / 0.516 GB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.5947, allocations: 218.3 kB / 0.5162 GB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.5948, allocations: 129.5 kB / 0.5163 GB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.072e-05/0.5949, allocations: 11.95 kB / 0.5163 GB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.595, allocations: 2.5 kB / 0.5163 GB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.637e-05/0.5951, allocations: 22.66 kB / 0.5164 GB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.5951, allocations: 7.906 kB / 0.5164 GB, free: 6.309 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003212/0.5955, allocations: 238.7 kB / 0.5166 GB, free: 6.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5955, allocations: 3.938 kB / 0.5166 GB, free: 6.207 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004045/0.5959, allocations: 56.77 kB / 0.5166 GB, free: 6.195 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.001507/0.5974, allocations: 1.242 MB / 0.5179 GB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003331/0.5978, allocations: 88.61 kB / 0.5179 GB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5978, allocations: 4.156 kB / 0.5179 GB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.66e-05/0.5979, allocations: 44.66 kB / 0.518 GB, free: 5.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.5985, allocations: 60.7 kB / 0.518 GB, free: 5.043 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.5995, allocations: 391.7 kB / 0.5184 GB, free: 4.805 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.5998, allocations: 0.7535 MB / 0.5192 GB, free: 4.078 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001434/0.5999, allocations: 28.88 kB / 0.5192 GB, free: 4.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.6001, allocations: 61.28 kB / 0.5192 GB, free: 4.055 MB / 330.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6001, allocations: 0 / 0.5192 GB, free: 4.055 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02755/0.6277, allocations: 5.066 MB / 0.5242 GB, free: 15.71 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003782/0.6281, allocations: 215.9 kB / 0.5244 GB, free: 15.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.678/3.306, allocations: 0 / 0.5244 GB, free: 15.48 MB / 346.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