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.001038/0.001038, allocations: 97.06 kB / 16.3 MB, free: 5.996 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.001137/0.001137, allocations: 182.3 kB / 17.2 MB, free: 5.906 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.541/1.541, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002587, allocations: 6.469 kB / 300.8 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1142, allocations: 50.43 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002801/0.1171, allocations: 1.542 MB / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.1189, allocations: 1.006 MB / 353.8 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.1191, allocations: 3.938 kB / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.1194, allocations: 55.8 kB / 353.8 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.1197, allocations: 75.77 kB / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006882/0.1204, allocations: 228.8 kB / 354.1 MB, free: 8.711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001839/0.1206, allocations: 99.8 kB / 354.2 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.1207, allocations: 25.48 kB / 354.3 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.727e-05/0.1208, allocations: 59.7 kB / 354.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.1209, allocations: 67.75 kB / 354.4 MB, free: 8.465 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.1209, allocations: 4 kB / 354.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.1211, allocations: 35.97 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.932e-05/0.1211, allocations: 47.83 kB / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.1212, allocations: 53.58 kB / 354.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.1215, allocations: 167.6 kB / 354.7 MB, free: 8.156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1215, allocations: 0 / 354.7 MB, free: 8.156 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1215, allocations: 0 / 354.7 MB, free: 8.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1215, allocations: 0 / 354.7 MB, free: 8.156 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.0007104/0.1222, allocations: 0.4961 MB / 355.2 MB, free: 7.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.1223, allocations: 12.03 kB / 355.2 MB, free: 7.594 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.119e-05/0.1223, allocations: 38.55 kB / 355.2 MB, free: 7.547 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.043e-05/0.1224, allocations: 27.67 kB / 355.3 MB, free: 7.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.1228, allocations: 278.5 kB / 355.5 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1229, allocations: 0 / 355.5 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.1229, allocations: 8 kB / 355.5 MB, free: 7.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003707/0.1233, allocations: 155.6 kB / 355.7 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1233, allocations: 0 / 355.7 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.1233, allocations: 0 / 355.7 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.1233, allocations: 7.953 kB / 355.7 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.1234, allocations: 35.91 kB / 355.7 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006634/0.1241, allocations: 390.3 kB / 356.1 MB, free: 6.543 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002618/0.1244, allocations: 119.9 kB / 356.2 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.1244, allocations: 0 / 356.2 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002502/0.1247, allocations: 83.45 kB / 356.3 MB, free: 6.305 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.1247, allocations: 0 / 356.3 MB, free: 6.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004271/0.1251, allocations: 157.2 kB / 356.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1253, allocations: 170.4 kB / 356.6 MB, free: 5.941 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003511/0.1256, allocations: 322.7 kB / 356.9 MB, free: 5.613 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.1257, allocations: 29.7 kB / 357 MB, free: 5.578 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.926e-05/0.1258, allocations: 124.1 kB / 357.1 MB, free: 5.453 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.1258, allocations: 15.8 kB / 357.1 MB, free: 5.438 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.1258, allocations: 4 kB / 357.1 MB, free: 5.434 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.126, allocations: 326.8 kB / 357.4 MB, free: 5.105 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.827e-05/0.1261, allocations: 27.98 kB / 357.5 MB, free: 5.074 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.1262, allocations: 90.72 kB / 357.5 MB, free: 4.961 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.144e-05/0.1263, allocations: 32 kB / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1263, allocations: 0 / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002236/0.1265, allocations: 129.2 kB / 357.7 MB, free: 4.797 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1266, allocations: 7.953 kB / 357.7 MB, free: 4.789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1266, allocations: 0 / 357.7 MB, free: 4.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.1266, allocations: 4 kB / 357.7 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.1267, allocations: 19.98 kB / 357.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.1267, allocations: 0 / 357.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.382e-05/0.1268, allocations: 12.06 kB / 357.7 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.1269, allocations: 8 kB / 357.8 MB, free: 4.746 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.0001584/0.127, allocations: 153.8 kB / 357.9 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.687e-05/0.1271, allocations: 61.42 kB / 358 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.584e-05/0.1272, allocations: 29.66 kB / 358 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1272, allocations: 4 kB / 358 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1272, allocations: 3.938 kB / 358 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.1272, allocations: 0 / 358 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.1275, allocations: 245.7 kB / 358.2 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1275, allocations: 0 / 358.2 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-05/0.1276, allocations: 12 kB / 358.3 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1276, allocations: 0 / 358.3 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.1276, allocations: 4.312 kB / 358.3 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.1276, allocations: 7.938 kB / 358.3 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1276, allocations: 4 kB / 358.3 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002916/0.1279, allocations: 185.9 kB / 358.5 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.1281, allocations: 124.7 kB / 358.6 MB, free: 3.809 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.1281, allocations: 3.984 kB / 358.6 MB, free: 3.805 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.371e-05/0.1282, allocations: 8 kB / 358.6 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.259e-05/0.1282, allocations: 8.078 kB / 358.6 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.1283, allocations: 7.938 kB / 358.6 MB, free: 3.781 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.1285, allocations: 245.9 kB / 358.8 MB, free: 3.543 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1285, allocations: 0 / 358.8 MB, free: 3.543 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002827/0.1288, allocations: 31.98 kB / 358.9 MB, free: 3.512 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.001763/0.1306, allocations: 1.173 MB / 360 MB, free: 2.457 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002502/0.1309, allocations: 71.91 kB / 360.1 MB, free: 2.387 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1309, allocations: 0 / 360.1 MB, free: 2.387 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.218e-05/0.131, allocations: 31.98 kB / 360.1 MB, free: 2.355 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.1313, allocations: 60.7 kB / 360.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.1335, allocations: 1.742 MB / 361.9 MB, free: 484 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.1339, allocations: 0.7478 MB / 362.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.134, allocations: 29.52 kB / 362.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.1341, allocations: 55.42 kB / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1341, allocations: 0 / 362.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.152, allocations: 4.631 MB / 367.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.1523, allocations: 240.1 kB / 367.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.098, allocations: 0 / 367.6 MB, free: 10.91 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