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.002526/0.002532, allocations: 185.8 kB / 15.81 MB, free: 6.348 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.437/2.437, 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.001567/0.001567, allocations: 102.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.1329/0.1329, allocations: 12.61 MB / 331.1 MB, free: 10.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000562/0.0005622, allocations: 17.94 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09839/0.09899, allocations: 50.38 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.00273/0.1018, allocations: 1.633 MB / 444.1 MB, free: 9.156 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.1039, allocations: 0.9408 MB / 445.1 MB, free: 8.207 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/0.1041, allocations: 7.938 kB / 445.1 MB, free: 8.199 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007229/0.1049, allocations: 127.7 kB / 445.2 MB, free: 8.074 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003705/0.1053, allocations: 105.7 kB / 445.3 MB, free: 7.973 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009933/0.1063, allocations: 186 kB / 445.5 MB, free: 7.793 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.1066, allocations: 135.7 kB / 445.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.1068, allocations: 36.84 kB / 445.6 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.1069, allocations: 83.61 kB / 445.7 MB, free: 7.543 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1071, allocations: 71.69 kB / 445.8 MB, free: 7.473 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.1071, allocations: 4 kB / 445.8 MB, free: 7.469 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.1073, allocations: 47.84 kB / 445.8 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.097e-05/0.1074, allocations: 43.89 kB / 445.9 MB, free: 7.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.895e-05/0.1075, allocations: 61.52 kB / 445.9 MB, free: 7.312 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.1078, allocations: 167.9 kB / 446.1 MB, free: 7.148 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1078, allocations: 0 / 446.1 MB, free: 7.148 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1078, allocations: 3.938 kB / 446.1 MB, free: 7.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1078, allocations: 0 / 446.1 MB, free: 7.145 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008502/0.1087, allocations: 0.5156 MB / 446.6 MB, free: 6.574 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.1087, allocations: 8.031 kB / 446.6 MB, free: 6.566 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.602e-05/0.1088, allocations: 46.55 kB / 446.7 MB, free: 6.512 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.106e-05/0.1089, allocations: 23.72 kB / 446.7 MB, free: 6.488 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003959/0.1093, allocations: 277.6 kB / 447 MB, free: 6.176 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.1093, allocations: 11.94 kB / 447 MB, free: 6.164 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.1093, allocations: 12 kB / 447 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.11, allocations: 302.1 kB / 447.3 MB, free: 5.832 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.1101, allocations: 4 kB / 447.3 MB, free: 5.828 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.1101, allocations: 4 kB / 447.3 MB, free: 5.824 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.1101, allocations: 4 kB / 447.3 MB, free: 5.82 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.1103, allocations: 55.91 kB / 447.4 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005908/0.1109, allocations: 398.3 kB / 447.8 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004111/0.1114, allocations: 168 kB / 447.9 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.1114, allocations: 3.984 kB / 447.9 MB, free: 5.125 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.1116, allocations: 75.52 kB / 448 MB, free: 5.039 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 3.497e-06/0.1117, allocations: 4 kB / 448 MB, free: 5.035 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006878/0.1124, allocations: 225.4 kB / 448.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.547e-05/0.1125, allocations: 148.5 kB / 448.4 MB, free: 4.633 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.1128, allocations: 272.9 kB / 448.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.1129, allocations: 29.7 kB / 448.7 MB, free: 4.324 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.302e-05/0.113, allocations: 116.7 kB / 448.8 MB, free: 4.207 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.113, allocations: 35.64 kB / 448.8 MB, free: 4.172 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.125e-05/0.113, allocations: 4.375 kB / 448.8 MB, free: 4.168 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.815e-05/0.1131, allocations: 330.8 kB / 449.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.1133, allocations: 36.45 kB / 449.2 MB, free: 3.801 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.1135, allocations: 162.1 kB / 449.3 MB, free: 3.582 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.1137, allocations: 71.89 kB / 449.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1137, allocations: 0 / 449.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004944/0.1142, allocations: 221.4 kB / 449.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1143, allocations: 12.06 kB / 449.6 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1143, allocations: 7.953 kB / 449.6 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.1143, allocations: 4 kB / 449.6 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.1145, allocations: 27.92 kB / 449.7 MB, free: 3.238 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.1145, allocations: 8 kB / 449.7 MB, free: 3.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001731/0.1147, allocations: 19.89 kB / 449.7 MB, free: 3.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.1147, allocations: 8 kB / 449.7 MB, free: 3.203 MB / 282.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002014/0.1149, allocations: 180 kB / 449.9 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002498/0.1152, allocations: 117.4 kB / 450 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.432e-05/0.1153, allocations: 26.11 kB / 450 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1153, allocations: 11.95 kB / 450 MB, free: 2.855 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1153, allocations: 3.938 kB / 450 MB, free: 2.852 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.1153, allocations: 7.984 kB / 450 MB, free: 2.844 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.1156, allocations: 249.4 kB / 450.3 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1156, allocations: 0 / 450.3 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.104e-05/0.1157, allocations: 11.98 kB / 450.3 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.1157, allocations: 0 / 450.3 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.1157, allocations: 8 kB / 450.3 MB, free: 2.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1158, allocations: 4 kB / 450.3 MB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1158, allocations: 3.953 kB / 450.3 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004978/0.1163, allocations: 248.6 kB / 450.6 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.1164, allocations: 124.8 kB / 450.7 MB, free: 2.109 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.541e-05/0.1165, allocations: 11.98 kB / 450.7 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.1166, allocations: 8 kB / 450.7 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.1167, allocations: 4 kB / 450.7 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.1167, allocations: 7.984 kB / 450.7 MB, free: 2.078 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000244/0.117, allocations: 196.5 kB / 450.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.117, allocations: 0 / 450.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004912/0.1175, allocations: 44 kB / 450.9 MB, free: 1.84 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: 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 (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.00195/0.1195, allocations: 1.305 MB / 452.2 MB, free: 0.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000461/0.12, allocations: 147.7 kB / 452.4 MB, free: 364 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.12, allocations: 0 / 452.4 MB, free: 364 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1201, allocations: 24 kB / 452.4 MB, free: 340 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.1207, allocations: 113.6 kB / 452.5 MB, free: 228 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003939/0.1247, allocations: 3.779 MB / 456.3 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.1252, allocations: 0.7599 MB / 457.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001752/0.1254, allocations: 30.17 kB / 457.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.1256, allocations: 63.41 kB / 457.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1256, allocations: 7.938 kB / 457.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03595/0.1616, allocations: 4.934 MB / 462.1 MB, free: 6.484 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002594/0.1619, allocations: 248.5 kB / 462.3 MB, free: 6.215 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.713/2.875, allocations: 4 kB / 462.3 MB, free: 6.211 MB / 298.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