Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008618/0.0008619, allocations: 90.12 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009202/0.0009202, allocations: 183 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 223.3 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004253/0.0004254, allocations: 5.969 kB / 300.9 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1281, allocations: 50.43 MB / 351.4 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003161/0.1314, allocations: 1.569 MB / 352.9 MB, free: 9.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003131/0.1346, allocations: 1.072 MB / 354 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.1349, allocations: 7.938 kB / 354 MB, free: 8.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005974/0.1355, allocations: 55.8 kB / 354.1 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004627/0.136, allocations: 83.7 kB / 354.1 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.1376, allocations: 214.4 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.1381, allocations: 155.5 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.1383, allocations: 33.47 kB / 354.5 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.1386, allocations: 67.66 kB / 354.6 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.1388, allocations: 67.67 kB / 354.7 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.384e-05/0.1388, allocations: 7.938 kB / 354.7 MB, free: 8.227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002999/0.1391, allocations: 51.91 kB / 354.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.1393, allocations: 47.83 kB / 354.8 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.1395, allocations: 57.58 kB / 354.8 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004687/0.14, allocations: 175.6 kB / 355 MB, free: 7.895 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.238e-05/0.14, allocations: 0 / 355 MB, free: 7.895 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.14, allocations: 0 / 355 MB, free: 7.895 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.14, allocations: 4 kB / 355 MB, free: 7.891 MB / 286.1 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.0014/0.1414, allocations: 0.5 MB / 355.5 MB, free: 7.336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.391e-05/0.1415, allocations: 8.031 kB / 355.5 MB, free: 7.328 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.1416, allocations: 38.56 kB / 355.5 MB, free: 7.281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.1418, allocations: 27.67 kB / 355.6 MB, free: 7.254 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007977/0.1426, allocations: 286.3 kB / 355.9 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.538e-05/0.1426, allocations: 8 kB / 355.9 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.1427, allocations: 7.984 kB / 355.9 MB, free: 6.922 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006698/0.1434, allocations: 172.4 kB / 356 MB, free: 6.723 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.1434, allocations: 3.938 kB / 356 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.1435, allocations: 8 kB / 356 MB, free: 6.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.1435, allocations: 3.953 kB / 356 MB, free: 6.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.1437, allocations: 39.97 kB / 356.1 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000989/0.1447, allocations: 391.2 kB / 356.5 MB, free: 6.227 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.145, allocations: 138.5 kB / 356.6 MB, free: 6.055 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.1452, allocations: 63.34 kB / 356.7 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.1453, allocations: 12.08 kB / 356.7 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002971/0.1456, allocations: 87.25 kB / 356.8 MB, free: 5.871 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 2.956e-06/0.1456, allocations: 0 / 356.8 MB, free: 5.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006205/0.1462, allocations: 173.5 kB / 356.9 MB, free: 5.695 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001731/0.1464, allocations: 191.9 kB / 357.1 MB, free: 5.465 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006094/0.147, allocations: 334.6 kB / 357.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.583e-05/0.1471, allocations: 29.7 kB / 357.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002133/0.1473, allocations: 128.3 kB / 357.6 MB, free: 4.957 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.081e-05/0.1474, allocations: 15.81 kB / 357.6 MB, free: 4.941 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.402e-05/0.1474, allocations: 4 kB / 357.6 MB, free: 4.938 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.1476, allocations: 338.8 kB / 358 MB, free: 4.598 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1477, allocations: 23.98 kB / 358 MB, free: 4.574 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.1479, allocations: 96.56 kB / 358.1 MB, free: 4.449 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.1481, allocations: 39.92 kB / 358.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1481, allocations: 0 / 358.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003886/0.1485, allocations: 133.3 kB / 358.2 MB, free: 4.273 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.1486, allocations: 11.95 kB / 358.3 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.1486, allocations: 192 / 358.3 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.058e-05/0.1486, allocations: 8 kB / 358.3 MB, free: 4.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.1488, allocations: 23.92 kB / 358.3 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.1488, allocations: 4 kB / 358.3 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.149, allocations: 15.89 kB / 358.3 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.149, allocations: 4 kB / 358.3 MB, free: 4.207 MB / 286.1 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,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked 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.0002504/0.1493, allocations: 157.8 kB / 358.5 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.1494, allocations: 81.38 kB / 358.5 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.1496, allocations: 33.66 kB / 358.6 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.1496, allocations: 4 kB / 358.6 MB, free: 3.922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.1496, allocations: 3.938 kB / 358.6 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.1496, allocations: 48 / 358.6 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.1501, allocations: 245.5 kB / 358.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1501, allocations: 0 / 358.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.589e-05/0.1502, allocations: 15.98 kB / 358.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1502, allocations: 0 / 358.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.1503, allocations: 8 kB / 358.8 MB, free: 3.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.1503, allocations: 4.266 kB / 358.8 MB, free: 3.602 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.1503, allocations: 8.062 kB / 358.9 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.1508, allocations: 183.3 kB / 359 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/0.151, allocations: 116.8 kB / 359.1 MB, free: 3.254 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.193e-05/0.1511, allocations: 4 kB / 359.2 MB, free: 3.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.1512, allocations: 11.98 kB / 359.2 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/0.1513, allocations: 15.94 kB / 359.2 MB, free: 3.223 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.1513, allocations: 4 kB / 359.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004312/0.1518, allocations: 249.9 kB / 359.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1518, allocations: 0 / 359.4 MB, free: 2.977 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004986/0.1523, allocations: 36 kB / 359.5 MB, free: 2.941 MB / 286.1 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.002617/0.1549, allocations: 1.034 MB / 360.5 MB, free: 2.031 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005948/0.1556, allocations: 80.16 kB / 360.6 MB, free: 1.953 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.1556, allocations: 4.062 kB / 360.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.1557, allocations: 31.92 kB / 360.6 MB, free: 1.918 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000699/0.1564, allocations: 79.59 kB / 360.7 MB, free: 1.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/0.1599, allocations: 1.24 MB / 361.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006602/0.1606, allocations: 0.7401 MB / 362.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000188/0.1608, allocations: 29.52 kB / 362.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/0.161, allocations: 63.42 kB / 362.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of SimCode: time 3.276e-06/0.1611, allocations: 0 / 362.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.1904, allocations: 4.955 MB / 367.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000379/0.1908, allocations: 238.7 kB / 367.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.206/2.396, allocations: 3.375 kB / 368 MB, free: 10.67 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat