Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",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.0009592/0.0009592, allocations: 86.16 kB / 16.31 MB, free: 6.453 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.001117/0.001117, allocations: 179.5 kB / 17.21 MB, free: 6.328 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.471/1.471, allocations: 223.2 MB / 241.2 MB, free: 296 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003122, allocations: 4.688 kB / 300.9 MB, free: 6.336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 50.42 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002718/0.1237, allocations: 1.547 MB / 352.9 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.1256, allocations: 1.045 MB / 353.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.1257, allocations: 7.938 kB / 353.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003134/0.126, allocations: 59.8 kB / 354 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002173/0.1263, allocations: 79.7 kB / 354.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006057/0.1269, allocations: 214.4 kB / 354.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002084/0.1271, allocations: 143.6 kB / 354.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.1272, allocations: 25.53 kB / 354.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.09e-05/0.1273, allocations: 63.66 kB / 354.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1275, allocations: 63.75 kB / 354.6 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.1275, allocations: 4 kB / 354.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.1277, allocations: 51.89 kB / 354.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.903e-05/0.1278, allocations: 43.84 kB / 354.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.585e-05/0.1278, allocations: 49.64 kB / 354.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.1281, allocations: 179.8 kB / 354.9 MB, free: 332 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1281, allocations: 0 / 354.9 MB, free: 332 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1281, allocations: 0 / 354.9 MB, free: 332 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1281, allocations: 0 / 354.9 MB, free: 332 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006973/0.1288, allocations: 0.4999 MB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.1289, allocations: 8.031 kB / 355.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.1289, allocations: 42.55 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.851e-05/0.129, allocations: 23.67 kB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.1293, allocations: 270.5 kB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.1293, allocations: 4 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.1294, allocations: 8 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.1297, allocations: 159.6 kB / 355.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1297, allocations: 4 kB / 355.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.1297, allocations: 7.969 kB / 355.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1297, allocations: 3.953 kB / 355.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001081/0.1299, allocations: 39.92 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005577/0.1304, allocations: 378.4 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002534/0.1307, allocations: 115.9 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.934e-05/0.1308, allocations: 54.48 kB / 356.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.321e-05/0.1308, allocations: 4 kB / 356.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.131, allocations: 79.34 kB / 356.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.1311, allocations: 0 / 356.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003846/0.1314, allocations: 153.2 kB / 356.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.1316, allocations: 158.2 kB / 356.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003489/0.1319, allocations: 326.7 kB / 357.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1319, allocations: 29.7 kB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.1321, allocations: 128.2 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.1321, allocations: 19.84 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.184e-06/0.1322, allocations: 7.938 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1323, allocations: 334.8 kB / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.257e-05/0.1324, allocations: 23.98 kB / 357.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.1325, allocations: 82.84 kB / 357.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.889e-05/0.1326, allocations: 31.94 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1326, allocations: 0 / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002294/0.1328, allocations: 125.3 kB / 358 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.1329, allocations: 15.94 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1329, allocations: 4.125 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1329, allocations: 0 / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.133, allocations: 16 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.133, allocations: 4 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.105e-05/0.1331, allocations: 7.984 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.1331, allocations: 4 kB / 358 MB, free: 12.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (11): * Single equations (assignments): 11 * 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.0001443/0.1333, allocations: 158.1 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.723e-05/0.1334, allocations: 65.41 kB / 358.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.642e-05/0.1334, allocations: 33.72 kB / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.1334, allocations: 4 kB / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1334, allocations: 0 / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1334, allocations: 0 / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/0.1337, allocations: 241.6 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1337, allocations: 0 / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.236e-05/0.1337, allocations: 15.92 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1338, allocations: 4 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.1338, allocations: 0 / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.1338, allocations: 7.953 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1338, allocations: 0 / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.1341, allocations: 162.5 kB / 358.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.1342, allocations: 120.7 kB / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.1342, allocations: 8 kB / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.254e-05/0.1343, allocations: 7.984 kB / 358.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.1343, allocations: 11.95 kB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.1344, allocations: 7.984 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002364/0.1346, allocations: 237.9 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1346, allocations: 0 / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002697/0.1349, allocations: 32 kB / 359.1 MB, free: 11.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (9): * Single equations (assignments): 7 * 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.001522/0.1364, allocations: 1.021 MB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002082/0.1366, allocations: 79.78 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1367, allocations: 0 / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.71e-05/0.1367, allocations: 27.98 kB / 360.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003864/0.1371, allocations: 76.73 kB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.139, allocations: 1.157 MB / 361.5 MB, free: 9.367 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.1395, allocations: 0.7361 MB / 362.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.905e-05/0.1396, allocations: 33.52 kB / 362.2 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.1397, allocations: 55.42 kB / 362.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1397, allocations: 0 / 362.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0157/0.1554, allocations: 4.679 MB / 367 MB, free: 4.023 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.1556, allocations: 242.5 kB / 367.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.086/2.241, allocations: 0 / 367.2 MB, free: 3.781 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat