Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008518/0.000852, allocations: 98.42 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 192.5 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.4 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002914/0.0002916, allocations: 8 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1049, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002189/0.1071, allocations: 1.591 MB / 359.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.109, allocations: 1.221 MB / 361.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.1091, allocations: 7.938 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002979/0.1094, allocations: 59.8 kB / 361.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.1097, allocations: 103.6 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006849/0.1104, allocations: 223.1 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002193/0.1107, allocations: 159.5 kB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.1108, allocations: 29.53 kB / 361.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.1109, allocations: 67.62 kB / 361.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.805e-05/0.111, allocations: 71.69 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.111, allocations: 7.938 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.1112, allocations: 55.91 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.451e-05/0.1112, allocations: 39.84 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.563e-05/0.1113, allocations: 53.58 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.1115, allocations: 187.8 kB / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1115, allocations: 4 kB / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1115, allocations: 0 / 362.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.1115, allocations: 0 / 362.2 MB, free: 10.1 MB / 302.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.0006311/0.1122, allocations: 0.5039 MB / 362.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1122, allocations: 11.97 kB / 362.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.232e-05/0.1123, allocations: 38.56 kB / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.1123, allocations: 27.62 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.1127, allocations: 274.5 kB / 363 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.1127, allocations: 11.95 kB / 363 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.1127, allocations: 4 kB / 363 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.113, allocations: 176.4 kB / 363.2 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.1131, allocations: 0 / 363.2 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.1131, allocations: 3.984 kB / 363.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1131, allocations: 4 kB / 363.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.1132, allocations: 39.92 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005325/0.1137, allocations: 482.5 kB / 363.7 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.114, allocations: 138.5 kB / 363.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.324e-05/0.1141, allocations: 59.36 kB / 363.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1141, allocations: 8 kB / 363.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.1143, allocations: 97.09 kB / 364 MB, free: 7.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.1143, allocations: 0 / 364 MB, free: 7.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003738/0.1147, allocations: 169.2 kB / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.1148, allocations: 196.2 kB / 364.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.1152, allocations: 334.9 kB / 364.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1152, allocations: 37.69 kB / 364.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.361e-05/0.1153, allocations: 128.3 kB / 364.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.1154, allocations: 19.75 kB / 364.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-06/0.1154, allocations: 0 / 364.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.1155, allocations: 338.8 kB / 365.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.232e-05/0.1156, allocations: 23.98 kB / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.1157, allocations: 103.7 kB / 365.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.963e-05/0.1158, allocations: 48.2 kB / 365.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1158, allocations: 0 / 365.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002374/0.1161, allocations: 133.3 kB / 365.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1161, allocations: 4 kB / 365.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1161, allocations: 4 kB / 365.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.1161, allocations: 3.938 kB / 365.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.1162, allocations: 23.98 kB / 365.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.1163, allocations: 0 / 365.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.941e-05/0.1163, allocations: 12.14 kB / 365.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.1164, allocations: 8 kB / 365.6 MB, free: 6.312 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample1.y,hold1.u,hold1.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.0001536/0.1165, allocations: 158.8 kB / 365.7 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.624e-05/0.1166, allocations: 77.34 kB / 365.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.562e-05/0.1167, allocations: 25.73 kB / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1167, allocations: 4 kB / 365.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1167, allocations: 0 / 365.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1167, allocations: 4.062 kB / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000241/0.117, allocations: 261.4 kB / 366.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.117, allocations: 0 / 366.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.984e-05/0.1171, allocations: 15.98 kB / 366.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.1171, allocations: 4 kB / 366.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.1171, allocations: 0 / 366.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1171, allocations: 4 kB / 366.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1171, allocations: 3.984 kB / 366.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002761/0.1174, allocations: 195.2 kB / 366.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.1175, allocations: 120.8 kB / 366.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.1175, allocations: 7.984 kB / 366.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.451e-05/0.1176, allocations: 4 kB / 366.4 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.1177, allocations: 11.98 kB / 366.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.1177, allocations: 12.06 kB / 366.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002385/0.1179, allocations: 249.9 kB / 366.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.118, allocations: 0 / 366.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.1182, allocations: 32 kB / 366.7 MB, free: 5.039 MB / 302.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,hold1.y,hold1.u,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 (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.001456/0.1197, allocations: 1.034 MB / 367.8 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002388/0.1199, allocations: 83.83 kB / 367.9 MB, free: 4.031 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.12, allocations: 3.938 kB / 367.9 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.968e-05/0.12, allocations: 39.92 kB / 367.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.1205, allocations: 70.94 kB / 368 MB, free: 3.914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.1223, allocations: 1.241 MB / 369.2 MB, free: 2.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.1226, allocations: 0.744 MB / 370 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.414e-05/0.1227, allocations: 25.53 kB / 370 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.1228, allocations: 59.42 kB / 370 MB, free: 1.758 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1228, allocations: 0 / 370 MB, free: 1.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2139/0.3367, allocations: 4.878 MB / 374.9 MB, free: 18.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.3369, allocations: 234.6 kB / 375.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.128/2.465, allocations: 0 / 375.1 MB, free: 18.58 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat