Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008265/0.0008266, allocations: 87.08 kB / 16.31 MB, free: 6.449 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.000861/0.0008611, allocations: 183.2 kB / 17.21 MB, free: 6.316 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.486/1.486, allocations: 223.2 MB / 241.2 MB, free: 5.273 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000239/0.0002391, allocations: 6.281 kB / 300.9 MB, free: 5.598 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1135, allocations: 50.43 MB / 351.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002317/0.1159, allocations: 1.553 MB / 352.9 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.1175, allocations: 1.034 MB / 353.9 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1176, allocations: 3.938 kB / 353.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.1179, allocations: 63.73 kB / 354 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.1181, allocations: 67.73 kB / 354.1 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006202/0.1188, allocations: 226 kB / 354.3 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002075/0.119, allocations: 143.6 kB / 354.4 MB, free: 8.258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.1191, allocations: 25.53 kB / 354.4 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.662e-05/0.1192, allocations: 59.66 kB / 354.5 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.1193, allocations: 67.73 kB / 354.6 MB, free: 8.109 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.1193, allocations: 0 / 354.6 MB, free: 8.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1195, allocations: 51.91 kB / 354.6 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.087e-05/0.1196, allocations: 51.83 kB / 354.7 MB, free: 8.008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.43e-05/0.1196, allocations: 49.64 kB / 354.7 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.1199, allocations: 171.6 kB / 354.9 MB, free: 7.785 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1199, allocations: 0 / 354.9 MB, free: 7.785 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1199, allocations: 4 kB / 354.9 MB, free: 7.781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1199, allocations: 0 / 354.9 MB, free: 7.781 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006893/0.1206, allocations: 500 kB / 355.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.1207, allocations: 8.031 kB / 355.4 MB, free: 7.23 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.324e-05/0.1207, allocations: 38.56 kB / 355.4 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.197e-05/0.1208, allocations: 31.67 kB / 355.5 MB, free: 7.152 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.1211, allocations: 274.5 kB / 355.7 MB, free: 6.848 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.586e-05/0.1212, allocations: 4 kB / 355.7 MB, free: 6.844 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.1212, allocations: 8 kB / 355.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.1215, allocations: 163.6 kB / 355.9 MB, free: 6.648 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1216, allocations: 3.938 kB / 355.9 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.1216, allocations: 0 / 355.9 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.1216, allocations: 7.953 kB / 355.9 MB, free: 6.637 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.1218, allocations: 35.92 kB / 355.9 MB, free: 6.602 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005214/0.1223, allocations: 378.4 kB / 356.3 MB, free: 6.176 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.1225, allocations: 111.9 kB / 356.4 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.811e-05/0.1226, allocations: 58.5 kB / 356.5 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.1227, allocations: 0 / 356.5 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.1229, allocations: 83.33 kB / 356.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.1229, allocations: 0 / 356.6 MB, free: 5.879 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003691/0.1233, allocations: 153.3 kB / 356.7 MB, free: 5.723 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001599/0.1235, allocations: 162.4 kB / 356.9 MB, free: 5.527 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.1238, allocations: 326.7 kB / 357.2 MB, free: 5.195 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.1239, allocations: 29.7 kB / 357.2 MB, free: 5.16 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.124, allocations: 124.1 kB / 357.3 MB, free: 5.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.124, allocations: 11.8 kB / 357.3 MB, free: 5.023 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.686e-06/0.124, allocations: 8 kB / 357.4 MB, free: 5.016 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1242, allocations: 330.8 kB / 357.7 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.738e-05/0.1242, allocations: 24 kB / 357.7 MB, free: 4.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.1243, allocations: 90.84 kB / 357.8 MB, free: 4.547 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.107e-05/0.1244, allocations: 35.92 kB / 357.8 MB, free: 4.512 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1244, allocations: 0 / 357.8 MB, free: 4.512 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002141/0.1247, allocations: 125.3 kB / 357.9 MB, free: 4.383 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.1247, allocations: 7.953 kB / 358 MB, free: 4.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1247, allocations: 3.938 kB / 358 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1247, allocations: 4.047 kB / 358 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1248, allocations: 27.91 kB / 358 MB, free: 4.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1248, allocations: 0 / 358 MB, free: 4.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.549e-05/0.1249, allocations: 12.06 kB / 358 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.1249, allocations: 8 kB / 358 MB, free: 4.32 MB / 286.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.0001501/0.1251, allocations: 153.8 kB / 358.2 MB, free: 4.16 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.919e-05/0.1252, allocations: 61.42 kB / 358.2 MB, free: 4.094 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.364e-05/0.1252, allocations: 29.66 kB / 358.2 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1252, allocations: 4 kB / 358.3 MB, free: 4.062 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1253, allocations: 0 / 358.3 MB, free: 4.062 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.1253, allocations: 3.984 kB / 358.3 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.1255, allocations: 237.6 kB / 358.5 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1255, allocations: 4 kB / 358.5 MB, free: 3.773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.271e-05/0.1256, allocations: 12.25 kB / 358.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1256, allocations: 0 / 358.5 MB, free: 3.762 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.1256, allocations: 11.98 kB / 358.5 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.1256, allocations: 3.953 kB / 358.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1256, allocations: 0 / 358.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/0.1259, allocations: 170.5 kB / 358.7 MB, free: 3.555 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.77e-05/0.126, allocations: 116.7 kB / 358.8 MB, free: 3.422 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.1261, allocations: 4 kB / 358.8 MB, free: 3.418 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.962e-05/0.1261, allocations: 4 kB / 358.8 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.1262, allocations: 11.94 kB / 358.8 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1262, allocations: 8 kB / 358.8 MB, free: 3.395 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.1265, allocations: 241.9 kB / 359.1 MB, free: 3.16 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1265, allocations: 0 / 359.1 MB, free: 3.16 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.1267, allocations: 32 kB / 359.1 MB, free: 3.129 MB / 286.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.001488/0.1282, allocations: 1.015 MB / 360.1 MB, free: 2.242 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002305/0.1285, allocations: 79.84 kB / 360.2 MB, free: 2.164 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1285, allocations: 0 / 360.2 MB, free: 2.164 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.239e-05/0.1286, allocations: 35.92 kB / 360.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.129, allocations: 60.38 kB / 360.3 MB, free: 2.07 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.131, allocations: 1.163 MB / 361.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/0.1316, allocations: 0.7439 MB / 362.2 MB, free: 68 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.1317, allocations: 33.45 kB / 362.2 MB, free: 36 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.1318, allocations: 51.42 kB / 362.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1318, allocations: 0 / 362.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01848/0.1503, allocations: 4.627 MB / 366.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000332/0.1507, allocations: 245.2 kB / 367.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.07/2.22, allocations: 0 / 367.1 MB, free: 11.28 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat