Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009504/0.0009505, allocations: 96.48 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003728, allocations: 8 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1349, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00271/0.1377, allocations: 1.576 MB / 359.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.1402, allocations: 1.189 MB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.1405, allocations: 4 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000406/0.1409, allocations: 67.78 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004362/0.1413, allocations: 99.64 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000993/0.1424, allocations: 223.2 kB / 361.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.1427, allocations: 147.5 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.1429, allocations: 33.52 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1431, allocations: 59.7 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.1433, allocations: 67.69 kB / 361.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/0.1433, allocations: 7.938 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.1435, allocations: 43.97 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.1437, allocations: 47.83 kB / 361.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.213e-05/0.1437, allocations: 53.58 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002899/0.144, allocations: 179.9 kB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.1441, allocations: 4 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.1441, allocations: 0 / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1441, allocations: 0 / 362.1 MB, free: 10.17 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009668/0.145, allocations: 0.5038 MB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.1451, allocations: 8.031 kB / 362.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/0.1452, allocations: 38.56 kB / 362.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.1452, allocations: 23.72 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.1457, allocations: 278.4 kB / 362.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.1457, allocations: 0 / 362.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.1458, allocations: 15.95 kB / 363 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004321/0.1462, allocations: 155.6 kB / 363.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1462, allocations: 3.938 kB / 363.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1462, allocations: 4 kB / 363.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.1463, allocations: 7.984 kB / 363.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001253/0.1464, allocations: 35.91 kB / 363.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006641/0.1471, allocations: 390.2 kB / 363.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000302/0.1474, allocations: 115.9 kB / 363.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.874e-05/0.1475, allocations: 46.56 kB / 363.7 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.1475, allocations: 7.984 kB / 363.7 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.1478, allocations: 79.39 kB / 363.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.1478, allocations: 0 / 363.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004238/0.1482, allocations: 157.2 kB / 363.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.1484, allocations: 158.2 kB / 364.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003946/0.1488, allocations: 342.9 kB / 364.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.1488, allocations: 25.7 kB / 364.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1489, allocations: 124.1 kB / 364.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.149, allocations: 19.8 kB / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.149, allocations: 0 / 364.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.1492, allocations: 334.8 kB / 364.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.148e-05/0.1493, allocations: 23.98 kB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.1494, allocations: 90.86 kB / 365 MB, free: 6.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.244e-05/0.1495, allocations: 35.98 kB / 365.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1495, allocations: 0 / 365.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002385/0.1497, allocations: 129.3 kB / 365.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.1498, allocations: 4 kB / 365.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1498, allocations: 0 / 365.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.1498, allocations: 4 kB / 365.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.1499, allocations: 23.92 kB / 365.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.1499, allocations: 0 / 365.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.559e-05/0.15, allocations: 11.94 kB / 365.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.1501, allocations: 4 kB / 365.2 MB, free: 6.684 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,subSample1.y,subSample1.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.0002074/0.1503, allocations: 165.8 kB / 365.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.639e-05/0.1504, allocations: 65.36 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.667e-05/0.1505, allocations: 25.7 kB / 365.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1505, allocations: 0 / 365.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.1505, allocations: 0 / 365.5 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1505, allocations: 7.984 kB / 365.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.1508, allocations: 245.5 kB / 365.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1508, allocations: 0 / 365.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.197e-05/0.1509, allocations: 11.98 kB / 365.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1509, allocations: 4 kB / 365.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.1509, allocations: 4.062 kB / 365.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1509, allocations: 4.312 kB / 365.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1509, allocations: 0 / 365.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.1512, allocations: 166.4 kB / 365.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.1514, allocations: 120.8 kB / 366 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.524e-05/0.1514, allocations: 8 kB / 366 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.439e-05/0.1515, allocations: 4.094 kB / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.497e-05/0.1516, allocations: 11.92 kB / 366.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.1516, allocations: 8 kB / 366.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002786/0.1519, allocations: 245.9 kB / 366.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1519, allocations: 0 / 366.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.1522, allocations: 36 kB / 366.3 MB, free: 5.473 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,subSample1.y,sample1.y,subSample1.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.00183/0.154, allocations: 1.025 MB / 367.4 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.1543, allocations: 71.89 kB / 367.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1543, allocations: 4.25 kB / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.34e-05/0.1544, allocations: 27.98 kB / 367.5 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.1549, allocations: 65.89 kB / 367.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.1569, allocations: 1.19 MB / 368.7 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.1573, allocations: 0.7477 MB / 369.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.1574, allocations: 29.47 kB / 369.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.1576, allocations: 59.42 kB / 369.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1576, allocations: 0 / 369.6 MB, free: 2.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2278/0.3854, allocations: 4.721 MB / 374.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.3856, allocations: 236.3 kB / 374.5 MB, free: 18.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.086/2.472, allocations: 1.312 kB / 374.5 MB, free: 18.21 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat