Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.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.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",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.001036/0.001036, allocations: 169.8 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.498/1.498, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0008636/0.0008636, allocations: 87.77 kB / 270.7 MB, free: 8.234 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.0802/0.0802, allocations: 12.6 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003865/0.0003865, allocations: 16 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1018, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.002256/0.1041, allocations: 1.669 MB / 444.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.1057, allocations: 0.9871 MB / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.1059, allocations: 7.938 kB / 445.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005972/0.1065, allocations: 139.7 kB / 445.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002918/0.1068, allocations: 111.6 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.1075, allocations: 203.6 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.1078, allocations: 207.5 kB / 446.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.1079, allocations: 56.48 kB / 446.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.1081, allocations: 79.58 kB / 446.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.1082, allocations: 87.53 kB / 446.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.1083, allocations: 4 kB / 446.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.1084, allocations: 47.92 kB / 446.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.946e-05/0.1085, allocations: 43.83 kB / 446.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1086, allocations: 109.1 kB / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.109, allocations: 231.2 kB / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.109, allocations: 0 / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.109, allocations: 0 / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.109, allocations: 0 / 447.1 MB, free: 11.33 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007689/0.1098, allocations: 0.5117 MB / 447.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.1098, allocations: 8.031 kB / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.1099, allocations: 46.73 kB / 447.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.357e-05/0.11, allocations: 28.66 kB / 447.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.1103, allocations: 274.8 kB / 448 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.1104, allocations: 16.36 kB / 448 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.1104, allocations: 15.94 kB / 448 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005296/0.1109, allocations: 298.1 kB / 448.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.111, allocations: 0 / 448.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.111, allocations: 11.98 kB / 448.3 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.111, allocations: 0 / 448.3 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.1112, allocations: 59.91 kB / 448.4 MB, free: 9.941 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004876/0.1117, allocations: 390.3 kB / 448.7 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.1119, allocations: 176 kB / 448.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.1121, allocations: 82.48 kB / 449 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.1121, allocations: 7.984 kB / 449 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.1123, allocations: 87.31 kB / 449.1 MB, free: 9.109 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.1123, allocations: 0 / 449.1 MB, free: 9.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004122/0.1127, allocations: 225.3 kB / 449.3 MB, free: 8.883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.1128, allocations: 148.4 kB / 449.4 MB, free: 8.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.113, allocations: 272.8 kB / 449.7 MB, free: 8.434 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.113, allocations: 33.7 kB / 449.7 MB, free: 8.395 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.692e-05/0.1131, allocations: 120.6 kB / 449.9 MB, free: 8.273 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.1131, allocations: 31.7 kB / 449.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-06/0.1131, allocations: 4 kB / 449.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.966e-05/0.1132, allocations: 330.8 kB / 450.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.13e-05/0.1133, allocations: 40.44 kB / 450.3 MB, free: 7.867 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.1134, allocations: 170.1 kB / 450.4 MB, free: 7.641 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.1136, allocations: 199.2 kB / 450.6 MB, free: 7.391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1136, allocations: 0 / 450.6 MB, free: 7.391 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002817/0.1139, allocations: 225 kB / 450.8 MB, free: 7.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1139, allocations: 8 kB / 450.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1139, allocations: 4 kB / 450.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1139, allocations: 4.531 kB / 450.9 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.544e-05/0.114, allocations: 35.86 kB / 450.9 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.114, allocations: 4 kB / 450.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.1141, allocations: 19.78 kB / 450.9 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.1142, allocations: 16 kB / 450.9 MB, free: 7.074 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001132/0.1143, allocations: 160.9 kB / 451.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.1144, allocations: 121.7 kB / 451.2 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.987e-05/0.1145, allocations: 30.09 kB / 451.2 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.1145, allocations: 8 kB / 451.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1145, allocations: 0 / 451.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1145, allocations: 4.031 kB / 451.3 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001403/0.1147, allocations: 253.4 kB / 451.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1147, allocations: 0 / 451.5 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.624e-05/0.1147, allocations: 16.25 kB / 451.5 MB, free: 6.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.1147, allocations: 0 / 451.5 MB, free: 6.426 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.1147, allocations: 11.98 kB / 451.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1147, allocations: 0 / 451.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1148, allocations: 0 / 451.5 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.115, allocations: 234.3 kB / 451.8 MB, free: 6.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.988e-05/0.1151, allocations: 124.7 kB / 451.9 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.1152, allocations: 8 kB / 451.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.037e-05/0.1152, allocations: 11.98 kB / 451.9 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.8e-05/0.1153, allocations: 4 kB / 451.9 MB, free: 5.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.1153, allocations: 12 kB / 451.9 MB, free: 5.984 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001473/0.1155, allocations: 200.4 kB / 452.1 MB, free: 5.793 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1155, allocations: 0 / 452.1 MB, free: 5.793 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003111/0.1158, allocations: 51.89 kB / 452.2 MB, free: 5.742 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001338/0.1171, allocations: 1.133 MB / 453.3 MB, free: 4.578 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.1174, allocations: 148.7 kB / 453.4 MB, free: 4.434 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1174, allocations: 0 / 453.4 MB, free: 4.434 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.836e-05/0.1175, allocations: 23.98 kB / 453.5 MB, free: 4.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/0.1179, allocations: 128.3 kB / 453.6 MB, free: 4.281 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.1193, allocations: 1.296 MB / 454.9 MB, free: 2.875 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001549/0.1195, allocations: 0.756 MB / 455.6 MB, free: 2.094 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.481e-05/0.1196, allocations: 22.19 kB / 455.7 MB, free: 2.074 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.206e-05/0.1197, allocations: 63.41 kB / 455.7 MB, free: 2.012 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.1197, allocations: 0 / 455.7 MB, free: 2.012 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.1351, allocations: 4.89 MB / 460.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002657/0.1355, allocations: 273 kB / 460.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/1.938, allocations: 4 kB / 460.9 MB, free: 12.74 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat