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.001746/0.001753, allocations: 189.5 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.316/2.316, allocations: 205.4 MB / 221.9 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.001186/0.001186, allocations: 98.8 kB / 270.3 MB, free: 13.34 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.1131/0.1131, allocations: 12.59 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005748/0.0005752, allocations: 12.75 kB / 392.1 MB, free: 54.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.105, allocations: 50.38 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.002649/0.1077, allocations: 1.542 MB / 444 MB, free: 9.266 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.1097, allocations: 0.8785 MB / 444.9 MB, free: 8.379 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.11, allocations: 7.938 kB / 444.9 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007904/0.1108, allocations: 127.6 kB / 445 MB, free: 8.246 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004371/0.1113, allocations: 91.75 kB / 445.1 MB, free: 8.156 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00081/0.1121, allocations: 155.4 kB / 445.3 MB, free: 8.008 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.1124, allocations: 115.8 kB / 445.4 MB, free: 7.895 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.1125, allocations: 25.53 kB / 445.4 MB, free: 7.867 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.1127, allocations: 63.7 kB / 445.5 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.1128, allocations: 55.7 kB / 445.5 MB, free: 7.75 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.1128, allocations: 8 kB / 445.5 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.113, allocations: 35.91 kB / 445.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.196e-05/0.1131, allocations: 35.91 kB / 445.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.825e-05/0.1132, allocations: 49.58 kB / 445.7 MB, free: 7.617 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.1135, allocations: 148.5 kB / 445.8 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.1135, allocations: 0 / 445.8 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1135, allocations: 4 kB / 445.8 MB, free: 7.469 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1135, allocations: 0 / 445.8 MB, free: 7.469 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.0008028/0.1143, allocations: 484.1 kB / 446.3 MB, free: 6.941 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.1144, allocations: 12.03 kB / 446.3 MB, free: 6.93 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.813e-05/0.1144, allocations: 46.48 kB / 446.3 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.481e-05/0.1145, allocations: 15.81 kB / 446.4 MB, free: 6.859 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.1149, allocations: 261.6 kB / 446.6 MB, free: 6.566 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.115, allocations: 8 kB / 446.6 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/0.115, allocations: 4 kB / 446.6 MB, free: 6.555 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.1154, allocations: 146.7 kB / 446.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.1154, allocations: 0 / 446.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.1154, allocations: 0 / 446.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.1154, allocations: 0 / 446.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001396/0.1156, allocations: 35.92 kB / 446.8 MB, free: 6.352 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000536/0.1161, allocations: 358.4 kB / 447.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002746/0.1164, allocations: 103.9 kB / 447.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.1165, allocations: 16 kB / 447.3 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.1167, allocations: 79.5 kB / 447.3 MB, free: 5.711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.254e-06/0.1167, allocations: 0 / 447.3 MB, free: 5.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.000494/0.1172, allocations: 137.3 kB / 447.5 MB, free: 5.57 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.1173, allocations: 148.7 kB / 447.6 MB, free: 5.395 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.1177, allocations: 257 kB / 447.9 MB, free: 5.133 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.1177, allocations: 29.7 kB / 447.9 MB, free: 5.098 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.88e-05/0.1178, allocations: 116.1 kB / 448 MB, free: 4.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.171e-05/0.1178, allocations: 19.75 kB / 448 MB, free: 4.961 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.1179, allocations: 0 / 448 MB, free: 4.961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.775e-05/0.118, allocations: 334.8 kB / 448.4 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.837e-05/0.1181, allocations: 23.98 kB / 448.4 MB, free: 4.602 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.1182, allocations: 66 kB / 448.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.971e-05/0.1183, allocations: 27.94 kB / 448.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1183, allocations: 0 / 448.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002804/0.1186, allocations: 117.5 kB / 448.6 MB, free: 4.367 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1186, allocations: 4 kB / 448.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1187, allocations: 0 / 448.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.1187, allocations: 7.938 kB / 448.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.1189, allocations: 15.92 kB / 448.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.1189, allocations: 4 kB / 448.6 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.119, allocations: 11.86 kB / 448.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.119, allocations: 4 kB / 448.6 MB, free: 4.32 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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.1192, allocations: 145.7 kB / 448.8 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.1193, allocations: 69.42 kB / 448.8 MB, free: 4.094 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.872e-05/0.1194, allocations: 25.7 kB / 448.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1194, allocations: 0 / 448.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.1194, allocations: 0 / 448.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.1194, allocations: 4 kB / 448.9 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.1197, allocations: 225.5 kB / 449.1 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1197, allocations: 3.938 kB / 449.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.332e-05/0.1197, allocations: 4.062 kB / 449.1 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1197, allocations: 11.94 kB / 449.1 MB, free: 3.777 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.1198, allocations: 4.297 kB / 449.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.1198, allocations: 4 kB / 449.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.1198, allocations: 4 kB / 449.1 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003175/0.1201, allocations: 181.9 kB / 449.3 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.1202, allocations: 104.9 kB / 449.4 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.1203, allocations: 8 kB / 449.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.1204, allocations: 4 kB / 449.4 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.1205, allocations: 11.94 kB / 449.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.1205, allocations: 4 kB / 449.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000224/0.1207, allocations: 192.5 kB / 449.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1207, allocations: 0 / 449.6 MB, free: 3.211 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000355/0.1211, allocations: 32 kB / 449.7 MB, free: 3.18 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,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 (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.00165/0.1228, allocations: 1.164 MB / 450.8 MB, free: 1.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002955/0.1231, allocations: 67.84 kB / 450.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1231, allocations: 0 / 450.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.1232, allocations: 27.98 kB / 450.9 MB, free: 1.887 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005028/0.1238, allocations: 48.19 kB / 451 MB, free: 1.844 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.1257, allocations: 1.557 MB / 452.5 MB, free: 220 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.1261, allocations: 0.736 MB / 453.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.1263, allocations: 25.53 kB / 453.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.1264, allocations: 43.42 kB / 453.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1265, allocations: 0 / 453.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.1543, allocations: 3.993 MB / 457.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004126/0.1547, allocations: 253.6 kB / 457.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.634/2.789, allocations: 0 / 457.6 MB, free: 11.09 MB / 298.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