Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",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.001666/0.001666, allocations: 182.2 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.27/2.27, allocations: 205.2 MB / 219 MB, free: 9.203 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.001159/0.001159, allocations: 90.58 kB / 267.1 MB, free: 9.27 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.1069/0.1069, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.33e-05/3.344e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09652, allocations: 50.39 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4742/0.5708, allocations: 82.28 MB / 0.5066 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004415/0.5713, allocations: 80.33 kB / 0.5067 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0573/0.6286, allocations: 8.65 MB / 0.5151 GB, free: 8.781 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.6287, allocations: 0 / 0.5151 GB, free: 8.781 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.15e-05/0.6288, allocations: 11.78 kB / 0.5151 GB, free: 8.773 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.00117/0.63, allocations: 0.5237 MB / 0.5156 GB, free: 8.281 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.347e-05/0.63, allocations: 11.53 kB / 0.5157 GB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.8e-05/0.6302, allocations: 45.17 kB / 0.5157 GB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.6303, allocations: 35 kB / 0.5157 GB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008943/0.6312, allocations: 313.1 kB / 0.516 GB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.074e-05/0.6313, allocations: 18.27 kB / 0.5161 GB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.6314, allocations: 10.94 kB / 0.5161 GB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009847/0.6324, allocations: 317.8 kB / 0.5164 GB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.6324, allocations: 0 / 0.5164 GB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.6325, allocations: 7.219 kB / 0.5164 GB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.6325, allocations: 3.984 kB / 0.5164 GB, free: 7.805 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003144/0.6328, allocations: 68.89 kB / 0.5164 GB, free: 7.797 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.6339, allocations: 445.2 kB / 0.5169 GB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.6346, allocations: 185.6 kB / 0.517 GB, free: 7.348 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.6349, allocations: 95 kB / 0.5171 GB, free: 7.316 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.932e-05/0.6349, allocations: 0 / 0.5171 GB, free: 7.316 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.6352, allocations: 77.86 kB / 0.5172 GB, free: 7.258 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 4.349e-06/0.6352, allocations: 0 / 0.5172 GB, free: 7.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007986/0.6361, allocations: 195.7 kB / 0.5174 GB, free: 7.191 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.6362, allocations: 177.8 kB / 0.5176 GB, free: 6.992 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007059/0.6369, allocations: 311.7 kB / 0.5179 GB, free: 6.871 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/0.637, allocations: 25.7 kB / 0.5179 GB, free: 6.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.6371, allocations: 138.7 kB / 0.518 GB, free: 6.746 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.6372, allocations: 23.36 kB / 0.518 GB, free: 6.734 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.902e-05/0.6373, allocations: 3.812 kB / 0.518 GB, free: 6.734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.6374, allocations: 341.9 kB / 0.5184 GB, free: 6.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.6376, allocations: 39.03 kB / 0.5184 GB, free: 6.406 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.6379, allocations: 181 kB / 0.5186 GB, free: 6.227 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.6382, allocations: 74.56 kB / 0.5187 GB, free: 6.203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.6382, allocations: 0 / 0.5187 GB, free: 6.203 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007622/0.639, allocations: 231.9 kB / 0.5189 GB, free: 6.004 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.6391, allocations: 11.94 kB / 0.5189 GB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.6391, allocations: 7.938 kB / 0.5189 GB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.6392, allocations: 4 kB / 0.5189 GB, free: 5.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.6396, allocations: 43.36 kB / 0.5189 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.055e-05/0.6396, allocations: 8.609 kB / 0.5189 GB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003461/0.64, allocations: 23.72 kB / 0.519 GB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-05/0.6401, allocations: 12.12 kB / 0.519 GB, free: 5.902 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.000211/0.6403, allocations: 146.3 kB / 0.5191 GB, free: 5.766 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004435/0.6408, allocations: 135.9 kB / 0.5192 GB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005105/0.6413, allocations: 126.2 kB / 0.5194 GB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.6413, allocations: 4 kB / 0.5194 GB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.6414, allocations: 4 kB / 0.5194 GB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.6414, allocations: 3.984 kB / 0.5194 GB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004145/0.6419, allocations: 279.3 kB / 0.5196 GB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.6419, allocations: 0 / 0.5196 GB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.6422, allocations: 35.91 kB / 0.5197 GB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/0.6423, allocations: 4 kB / 0.5197 GB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.6423, allocations: 3.938 kB / 0.5197 GB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.6423, allocations: 4 kB / 0.5197 GB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.6424, allocations: 0 / 0.5197 GB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007135/0.6431, allocations: 271.5 kB / 0.52 GB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.6434, allocations: 136.3 kB / 0.5201 GB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.982e-05/0.6435, allocations: 3.938 kB / 0.5201 GB, free: 4.812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002471/0.6438, allocations: 11.94 kB / 0.5201 GB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.01e-05/0.6439, allocations: 11.92 kB / 0.5201 GB, free: 4.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.6439, allocations: 11.89 kB / 0.5201 GB, free: 4.785 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005485/0.6445, allocations: 248.8 kB / 0.5204 GB, free: 4.586 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.6445, allocations: 0 / 0.5204 GB, free: 4.586 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000793/0.6453, allocations: 75.36 kB / 0.5204 GB, free: 4.523 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.002892/0.6483, allocations: 1.307 MB / 0.5217 GB, free: 3.281 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007485/0.6491, allocations: 157.5 kB / 0.5219 GB, free: 3.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.994e-06/0.6491, allocations: 7.25 kB / 0.5219 GB, free: 3.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.6493, allocations: 34.3 kB / 0.5219 GB, free: 3.129 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.6503, allocations: 111.8 kB / 0.522 GB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.6522, allocations: 452.9 kB / 0.5224 GB, free: 2.609 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.6526, allocations: 0.7788 MB / 0.5232 GB, free: 1.812 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.6528, allocations: 34.06 kB / 0.5232 GB, free: 1.777 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.6531, allocations: 82.59 kB / 0.5233 GB, free: 1.742 MB / 330.7 MB Notification: Performance of SimCode: time 1.813e-06/0.6531, allocations: 0 / 0.5233 GB, free: 1.742 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0334/0.6866, allocations: 5.802 MB / 0.529 GB, free: 11.94 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003643/0.687, allocations: 217.8 kB / 0.5292 GB, free: 11.71 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.869/3.556, allocations: 0 / 0.5292 GB, free: 11.71 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat