Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 172.9 kB / 15.81 MB, free: 6.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 205.4 MB / 222 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008191/0.0008194, allocations: 98.3 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07956/0.07956, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003919, allocations: 16.62 kB / 392.1 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09916/0.09957, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.002215/0.1018, allocations: 1.549 MB / 444 MB, free: 9.273 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.1032, allocations: 0.9643 MB / 445 MB, free: 8.301 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.1034, allocations: 4 kB / 445 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003065/0.1037, allocations: 63.78 kB / 445.1 MB, free: 8.234 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.1039, allocations: 71.72 kB / 445.1 MB, free: 8.164 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005553/0.1045, allocations: 197.1 kB / 445.3 MB, free: 7.977 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.1046, allocations: 147.5 kB / 445.5 MB, free: 7.832 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.1048, allocations: 25.53 kB / 445.5 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.759e-05/0.1049, allocations: 63.69 kB / 445.6 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.853e-05/0.1049, allocations: 67.69 kB / 445.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.105, allocations: 4 kB / 445.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.1051, allocations: 47.92 kB / 445.7 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.7e-05/0.1052, allocations: 47.83 kB / 445.7 MB, free: 7.578 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.193e-05/0.1052, allocations: 53.58 kB / 445.8 MB, free: 7.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.1054, allocations: 172.5 kB / 446 MB, free: 7.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1054, allocations: 3.938 kB / 446 MB, free: 7.348 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1054, allocations: 0 / 446 MB, free: 7.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.1055, allocations: 0 / 446 MB, free: 7.348 MB / 282.7 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.0006076/0.1061, allocations: 0.496 MB / 446.5 MB, free: 6.797 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.1061, allocations: 16.03 kB / 446.5 MB, free: 6.781 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.895e-05/0.1062, allocations: 38.55 kB / 446.5 MB, free: 6.734 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.1062, allocations: 23.72 kB / 446.5 MB, free: 6.711 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.1065, allocations: 270.5 kB / 446.8 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1065, allocations: 7.984 kB / 446.8 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.1065, allocations: 11.94 kB / 446.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.1069, allocations: 155.6 kB / 447 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1069, allocations: 0 / 447 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.1069, allocations: 0 / 447 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1069, allocations: 8 kB / 447 MB, free: 6.195 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001197/0.107, allocations: 35.92 kB / 447 MB, free: 6.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/0.1075, allocations: 382.4 kB / 447.4 MB, free: 5.73 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.1077, allocations: 115.9 kB / 447.5 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.134e-05/0.1078, allocations: 50.56 kB / 447.5 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.1078, allocations: 0 / 447.5 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.108, allocations: 79.31 kB / 447.6 MB, free: 5.441 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.1081, allocations: 0 / 447.6 MB, free: 5.441 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003603/0.1084, allocations: 153.3 kB / 447.8 MB, free: 5.285 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.1085, allocations: 166.1 kB / 447.9 MB, free: 5.086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.1088, allocations: 330.6 kB / 448.3 MB, free: 4.754 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.1088, allocations: 29.7 kB / 448.3 MB, free: 4.719 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.1089, allocations: 132 kB / 448.4 MB, free: 4.586 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.1089, allocations: 15.95 kB / 448.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-06/0.1089, allocations: 4.25 kB / 448.4 MB, free: 4.566 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.395e-05/0.109, allocations: 334.8 kB / 448.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-05/0.1091, allocations: 23.98 kB / 448.8 MB, free: 4.207 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.498e-05/0.1092, allocations: 82.84 kB / 448.9 MB, free: 4.102 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.405e-05/0.1092, allocations: 31.94 kB / 448.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1092, allocations: 0 / 448.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001978/0.1094, allocations: 129.3 kB / 449 MB, free: 3.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1095, allocations: 4 kB / 449 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1095, allocations: 4 kB / 449 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.1095, allocations: 0 / 449 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1096, allocations: 23.92 kB / 449.1 MB, free: 3.906 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1096, allocations: 8.078 kB / 449.1 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.349e-05/0.1097, allocations: 4 kB / 449.1 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.1097, allocations: 8 kB / 449.1 MB, free: 3.887 MB / 282.7 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,subSample.y,subSample.u,sample.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.0001042/0.1098, allocations: 153.5 kB / 449.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.563e-05/0.1099, allocations: 73.28 kB / 449.3 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.087e-05/0.11, allocations: 29.7 kB / 449.3 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.11, allocations: 0 / 449.3 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.11, allocations: 4.375 kB / 449.3 MB, free: 3.621 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.11, allocations: 7.953 kB / 449.3 MB, free: 3.613 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.1102, allocations: 233.6 kB / 449.6 MB, free: 3.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1102, allocations: 4 kB / 449.6 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.925e-05/0.1102, allocations: 11.98 kB / 449.6 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1102, allocations: 48 / 449.6 MB, free: 3.32 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1103, allocations: 11.92 kB / 449.6 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1103, allocations: 0 / 449.6 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1103, allocations: 0 / 449.6 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.1105, allocations: 174.4 kB / 449.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.399e-05/0.1106, allocations: 116.8 kB / 449.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.356e-05/0.1106, allocations: 8 kB / 449.9 MB, free: 2.973 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.476e-05/0.1107, allocations: 3.984 kB / 449.9 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.639e-05/0.1108, allocations: 4 kB / 449.9 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.1108, allocations: 11.98 kB / 449.9 MB, free: 2.953 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001759/0.111, allocations: 241.9 kB / 450.1 MB, free: 2.715 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.111, allocations: 0 / 450.1 MB, free: 2.715 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000276/0.1112, allocations: 35.98 kB / 450.2 MB, free: 2.68 MB / 282.7 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,subSample.y,sample.y,subSample.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.001138/0.1124, allocations: 1.015 MB / 451.2 MB, free: 1.637 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002034/0.1126, allocations: 75.89 kB / 451.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.1126, allocations: 3.938 kB / 451.3 MB, free: 1.559 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.823e-05/0.1127, allocations: 31.98 kB / 451.3 MB, free: 1.527 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.1131, allocations: 56.31 kB / 451.4 MB, free: 1.477 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.1145, allocations: 1.169 MB / 452.5 MB, free: 248 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.1148, allocations: 0.74 MB / 453.3 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.331e-05/0.1149, allocations: 33.45 kB / 453.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.965e-05/0.115, allocations: 55.42 kB / 453.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.115, allocations: 0 / 453.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01691/0.1319, allocations: 4.636 MB / 458 MB, free: 10.75 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002538/0.1322, allocations: 267.7 kB / 458.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/1.979, allocations: 0 / 458.3 MB, free: 10.39 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat