Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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.0009305/0.0009303, allocations: 172.4 kB / 16.14 MB, free: 5.656 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.42/1.42, allocations: 205.4 MB / 222.3 MB, free: 8.918 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.0007158/0.0007158, allocations: 87.7 kB / 270.6 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08142/0.08142, allocations: 12.6 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004422/0.0004426, allocations: 19.98 kB / 392.8 MB, free: 65.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09718, allocations: 50.36 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.00203/0.09925, allocations: 1.582 MB / 444.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1008, allocations: 0.9326 MB / 445.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.101, allocations: 0 / 445.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005523/0.1015, allocations: 147.6 kB / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.1018, allocations: 99.62 kB / 445.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.1023, allocations: 163.7 kB / 446.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.1026, allocations: 175.6 kB / 446.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.1027, allocations: 37.7 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.1028, allocations: 59.72 kB / 446.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1029, allocations: 67.62 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.1029, allocations: 4 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.103, allocations: 43.97 kB / 446.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.997e-05/0.1031, allocations: 39.84 kB / 446.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.719e-05/0.1032, allocations: 81.25 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002202/0.1034, allocations: 195.3 kB / 446.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1034, allocations: 0 / 446.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1034, allocations: 0 / 446.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.1034, allocations: 4 kB / 446.7 MB, free: 11.69 MB / 298.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.0005975/0.104, allocations: 492.3 kB / 447.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.403e-05/0.1041, allocations: 8.031 kB / 447.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.399e-05/0.1042, allocations: 38.75 kB / 447.3 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.1042, allocations: 16.75 kB / 447.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.1045, allocations: 270.6 kB / 447.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1045, allocations: 4.375 kB / 447.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.1045, allocations: 15.92 kB / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.1048, allocations: 142.7 kB / 447.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.1048, allocations: 0 / 447.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.1049, allocations: 0 / 447.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.1049, allocations: 4 kB / 447.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.621e-05/0.105, allocations: 31.92 kB / 447.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003999/0.1054, allocations: 362.5 kB / 448.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.1055, allocations: 115.9 kB / 448.2 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.442e-05/0.1056, allocations: 42.56 kB / 448.3 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.1057, allocations: 11.92 kB / 448.3 MB, free: 9.941 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001276/0.1058, allocations: 75.39 kB / 448.3 MB, free: 9.855 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.1058, allocations: 0 / 448.3 MB, free: 9.855 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002963/0.1061, allocations: 145.3 kB / 448.5 MB, free: 9.707 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.1062, allocations: 132.5 kB / 448.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.1064, allocations: 268.9 kB / 448.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.1064, allocations: 29.7 kB / 448.9 MB, free: 9.238 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.949e-05/0.1065, allocations: 124.3 kB / 449 MB, free: 9.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.1065, allocations: 19.8 kB / 449 MB, free: 9.094 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-06/0.1065, allocations: 4 kB / 449.1 MB, free: 9.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.132e-05/0.1066, allocations: 322.8 kB / 449.4 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.221e-05/0.1066, allocations: 23.98 kB / 449.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.461e-05/0.1067, allocations: 73.94 kB / 449.5 MB, free: 8.648 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.955e-05/0.1068, allocations: 72.22 kB / 449.5 MB, free: 8.562 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1068, allocations: 4 kB / 449.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001674/0.107, allocations: 117.4 kB / 449.7 MB, free: 8.438 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.107, allocations: 4 kB / 449.7 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.107, allocations: 4 kB / 449.7 MB, free: 8.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.107, allocations: 0 / 449.7 MB, free: 8.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.676e-05/0.1071, allocations: 12 kB / 449.7 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.1071, allocations: 3.938 kB / 449.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.691e-05/0.1072, allocations: 19.83 kB / 449.7 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/0.1072, allocations: 8 kB / 449.7 MB, free: 8.387 MB / 298.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,sample.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.1073, allocations: 145.9 kB / 449.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.267e-05/0.1074, allocations: 57.45 kB / 449.9 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.285e-05/0.1075, allocations: 21.7 kB / 449.9 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1075, allocations: 4 kB / 449.9 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1075, allocations: 0 / 449.9 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1075, allocations: 4.25 kB / 449.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001361/0.1076, allocations: 225.6 kB / 450.2 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1076, allocations: 4 kB / 450.2 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.63e-05/0.1077, allocations: 15.94 kB / 450.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1077, allocations: 64 / 450.2 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.1077, allocations: 4 kB / 450.2 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1077, allocations: 4 kB / 450.2 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1077, allocations: 3.938 kB / 450.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.1079, allocations: 158.4 kB / 450.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.108, allocations: 104.9 kB / 450.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.108, allocations: 11.98 kB / 450.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.041e-05/0.1081, allocations: 4 kB / 450.5 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.1081, allocations: 11.88 kB / 450.5 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.1081, allocations: 7.984 kB / 450.5 MB, free: 7.508 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001424/0.1083, allocations: 192.5 kB / 450.7 MB, free: 7.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1083, allocations: 0 / 450.7 MB, free: 7.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002274/0.1085, allocations: 27.98 kB / 450.7 MB, free: 7.293 MB / 298.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,sample.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00102/0.1096, allocations: 0.9923 MB / 451.7 MB, free: 6.266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001634/0.1097, allocations: 63.92 kB / 451.7 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1097, allocations: 256 / 451.7 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.023e-05/0.1098, allocations: 35.92 kB / 451.8 MB, free: 6.168 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.1102, allocations: 60.3 kB / 451.8 MB, free: 6.109 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.1119, allocations: 1.951 MB / 453.8 MB, free: 4.039 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.112, allocations: 0.7283 MB / 454.5 MB, free: 3.281 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.1122, allocations: 25.52 kB / 454.5 MB, free: 3.258 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.848e-05/0.1122, allocations: 55.41 kB / 454.6 MB, free: 3.207 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1122, allocations: 0 / 454.6 MB, free: 3.207 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.1285, allocations: 4.031 MB / 458.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002879/0.1289, allocations: 278.1 kB / 458.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/1.953, allocations: 0 / 458.9 MB, free: 14.8 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat does not exist to compare? outputFormat=mat