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.000892/0.000892, allocations: 177 kB / 15.82 MB, free: 6.305 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.571/1.571, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007766/0.0007769, allocations: 94.36 kB / 270.3 MB, free: 13.37 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08828/0.08828, allocations: 12.59 MB / 331.1 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004792/0.0004793, allocations: 16.81 kB / 392.1 MB, free: 54.82 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1117, allocations: 50.38 MB / 442.5 MB, free: 10.85 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.002017/0.1138, allocations: 1.549 MB / 444.1 MB, free: 9.289 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.1151, allocations: 0.902 MB / 445 MB, free: 8.379 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.1152, allocations: 7.938 kB / 445 MB, free: 8.371 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0005345/0.1157, allocations: 127.7 kB / 445.1 MB, free: 8.246 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002135/0.116, allocations: 99.69 kB / 445.2 MB, free: 8.148 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.1165, allocations: 151.5 kB / 445.3 MB, free: 8.004 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.1167, allocations: 159.5 kB / 445.5 MB, free: 7.848 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.1168, allocations: 25.55 kB / 445.5 MB, free: 7.82 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 9.626e-05/0.1169, allocations: 63.7 kB / 445.6 MB, free: 7.758 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 9.52e-05/0.117, allocations: 63.69 kB / 445.6 MB, free: 7.695 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.117, allocations: 4 kB / 445.6 MB, free: 7.691 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.1171, allocations: 55.84 kB / 445.7 MB, free: 7.637 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 4.712e-05/0.1172, allocations: 27.91 kB / 445.7 MB, free: 7.609 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 4.145e-05/0.1172, allocations: 53.58 kB / 445.8 MB, free: 7.551 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.1174, allocations: 152.5 kB / 445.9 MB, free: 7.402 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1174, allocations: 0 / 445.9 MB, free: 7.402 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1174, allocations: 0 / 445.9 MB, free: 7.402 MB / 282.8 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1175, allocations: 0 / 445.9 MB, free: 7.402 MB / 282.8 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.0006313/0.1181, allocations: 484.2 kB / 446.4 MB, free: 6.875 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.1181, allocations: 16.03 kB / 446.4 MB, free: 6.859 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.94e-05/0.1182, allocations: 46.42 kB / 446.5 MB, free: 6.805 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.1182, allocations: 15.81 kB / 446.5 MB, free: 6.789 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.1185, allocations: 253.7 kB / 446.7 MB, free: 6.504 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.1186, allocations: 4 kB / 446.7 MB, free: 6.5 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.1186, allocations: 8 kB / 446.7 MB, free: 6.492 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.1189, allocations: 146.7 kB / 446.9 MB, free: 6.324 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1189, allocations: 0 / 446.9 MB, free: 6.324 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.119, allocations: 8 kB / 446.9 MB, free: 6.316 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.119, allocations: 3.984 kB / 446.9 MB, free: 6.312 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.445e-05/0.1191, allocations: 31.92 kB / 446.9 MB, free: 6.281 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004304/0.1195, allocations: 362.3 kB / 447.3 MB, free: 5.871 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.1197, allocations: 107.9 kB / 447.4 MB, free: 5.738 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.458e-05/0.1198, allocations: 46.56 kB / 447.4 MB, free: 5.684 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.1198, allocations: 0 / 447.4 MB, free: 5.684 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001543/0.12, allocations: 79.44 kB / 447.5 MB, free: 5.594 MB / 282.8 MB Notification: Performance of pre-optimization done (n=9): time 2.144e-06/0.12, allocations: 0 / 447.5 MB, free: 5.594 MB / 282.8 MB Notification: Performance of matching and sorting (n=9): time 0.0003357/0.1203, allocations: 145.2 kB / 447.6 MB, free: 5.445 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.172e-05/0.1204, allocations: 140.5 kB / 447.8 MB, free: 5.277 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.1206, allocations: 257 kB / 448 MB, free: 5.016 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.1207, allocations: 25.7 kB / 448.1 MB, free: 4.984 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.736e-05/0.1207, allocations: 116.1 kB / 448.2 MB, free: 4.867 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.1208, allocations: 19.75 kB / 448.2 MB, free: 4.848 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.1208, allocations: 0 / 448.2 MB, free: 4.848 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 7.137e-05/0.1208, allocations: 335.1 kB / 448.5 MB, free: 4.512 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.647e-05/0.1209, allocations: 23.98 kB / 448.5 MB, free: 4.488 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.991e-05/0.121, allocations: 69.88 kB / 448.6 MB, free: 4.398 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.275e-05/0.1211, allocations: 28.03 kB / 448.6 MB, free: 4.371 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1211, allocations: 0 / 448.6 MB, free: 4.371 MB / 282.8 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001663/0.1212, allocations: 113.4 kB / 448.7 MB, free: 4.254 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1213, allocations: 8 kB / 448.8 MB, free: 4.246 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.1213, allocations: 0 / 448.8 MB, free: 4.246 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.1213, allocations: 0 / 448.8 MB, free: 4.246 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.308e-05/0.1214, allocations: 19.98 kB / 448.8 MB, free: 4.227 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1214, allocations: 7.891 kB / 448.8 MB, free: 4.219 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.666e-05/0.1215, allocations: 16.03 kB / 448.8 MB, free: 4.203 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.1215, allocations: 4 kB / 448.8 MB, free: 4.199 MB / 282.8 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 9.498e-05/0.1216, allocations: 145.9 kB / 448.9 MB, free: 4.047 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.331e-05/0.1216, allocations: 57.5 kB / 449 MB, free: 3.984 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.983e-05/0.1217, allocations: 21.72 kB / 449 MB, free: 3.965 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1217, allocations: 15.92 kB / 449 MB, free: 3.949 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1217, allocations: 0 / 449 MB, free: 3.949 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1217, allocations: 8.016 kB / 449 MB, free: 3.941 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.1219, allocations: 221.5 kB / 449.3 MB, free: 3.676 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1219, allocations: 4 kB / 449.3 MB, free: 3.672 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.511e-05/0.1219, allocations: 4 kB / 449.3 MB, free: 3.668 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1219, allocations: 0 / 449.3 MB, free: 3.668 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.122, allocations: 0 / 449.3 MB, free: 3.668 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.122, allocations: 7.984 kB / 449.3 MB, free: 3.66 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.122, allocations: 0 / 449.3 MB, free: 3.66 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001906/0.1222, allocations: 158.4 kB / 449.4 MB, free: 3.48 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.793e-05/0.1222, allocations: 112.9 kB / 449.5 MB, free: 3.352 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.1223, allocations: 0 / 449.5 MB, free: 3.352 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.301e-05/0.1223, allocations: 4 kB / 449.5 MB, free: 3.348 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.1224, allocations: 11.98 kB / 449.6 MB, free: 3.336 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.1224, allocations: 4 kB / 449.6 MB, free: 3.332 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001396/0.1226, allocations: 192.5 kB / 449.7 MB, free: 3.141 MB / 282.8 MB Notification: Performance of sort global known variables: time 7.31e-07/0.1226, allocations: 4 kB / 449.8 MB, free: 3.137 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002345/0.1228, allocations: 35.94 kB / 449.8 MB, free: 3.102 MB / 282.8 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.001045/0.1239, allocations: 1.003 MB / 450.8 MB, free: 2.07 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.124, allocations: 63.91 kB / 450.9 MB, free: 2.008 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1241, allocations: 0 / 450.9 MB, free: 2.008 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 7.426e-05/0.1241, allocations: 27.98 kB / 450.9 MB, free: 1.98 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.1245, allocations: 60.12 kB / 450.9 MB, free: 1.926 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.1258, allocations: 0.9883 MB / 451.9 MB, free: 0.8711 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/0.126, allocations: 0.7283 MB / 452.7 MB, free: 116 kB / 282.8 MB Notification: Performance of simCode: alias equations: time 7.192e-05/0.1261, allocations: 25.52 kB / 452.7 MB, free: 92 kB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.997e-05/0.1261, allocations: 47.42 kB / 452.7 MB, free: 44 kB / 282.8 MB Notification: Performance of SimCode: time 2.4e-07/0.1261, allocations: 0 / 452.7 MB, free: 44 kB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01618/0.1423, allocations: 4.005 MB / 456.7 MB, free: 12.03 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002772/0.1427, allocations: 255.8 kB / 457 MB, free: 11.69 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/1.889, allocations: 4 kB / 457 MB, free: 11.69 MB / 298.8 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