Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",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.002284/0.002283, allocations: 190.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.302/2.302, 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.001216/0.001216, 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.1022/0.1022, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005784/0.0005785, allocations: 12.69 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.09948, allocations: 50.38 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002563/0.1021, allocations: 1.55 MB / 444 MB, free: 9.266 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.1041, allocations: 0.8902 MB / 444.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.1044, allocations: 7.938 kB / 444.9 MB, free: 8.359 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007124/0.1051, allocations: 129.4 kB / 445.1 MB, free: 8.234 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003739/0.1055, allocations: 95.67 kB / 445.1 MB, free: 8.141 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007699/0.1063, allocations: 149.6 kB / 445.3 MB, free: 7.996 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003926/0.1067, allocations: 111.7 kB / 445.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.1069, allocations: 29.48 kB / 445.4 MB, free: 7.855 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.1072, allocations: 55.77 kB / 445.5 MB, free: 7.801 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.1073, allocations: 63.69 kB / 445.5 MB, free: 7.738 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.166e-05/0.1074, allocations: 4 kB / 445.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.1077, allocations: 35.98 kB / 445.6 MB, free: 7.699 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.793e-05/0.1078, allocations: 31.84 kB / 445.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.11e-05/0.1079, allocations: 49.64 kB / 445.7 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003964/0.1083, allocations: 152.5 kB / 445.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1083, allocations: 0 / 445.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1083, allocations: 0 / 445.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1084, allocations: 0 / 445.8 MB, free: 7.465 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.0008165/0.1092, allocations: 492.1 kB / 446.3 MB, free: 6.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1092, allocations: 16.03 kB / 446.3 MB, free: 6.914 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.173e-05/0.1093, allocations: 30.56 kB / 446.3 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.178e-05/0.1094, allocations: 19.81 kB / 446.4 MB, free: 6.855 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.1098, allocations: 265.6 kB / 446.6 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.1098, allocations: 0 / 446.6 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.108e-05/0.1099, allocations: 7.984 kB / 446.6 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003902/0.1103, allocations: 148.4 kB / 446.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1103, allocations: 4 kB / 446.8 MB, free: 6.379 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.1103, allocations: 4 kB / 446.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.1103, allocations: 0 / 446.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.1105, allocations: 27.98 kB / 446.8 MB, free: 6.348 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005597/0.1111, allocations: 366.3 kB / 447.2 MB, free: 5.934 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002809/0.1114, allocations: 107.9 kB / 447.3 MB, free: 5.801 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.1114, allocations: 8 kB / 447.3 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.1116, allocations: 75.53 kB / 447.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.234e-06/0.1116, allocations: 0 / 447.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004991/0.1121, allocations: 145.3 kB / 447.5 MB, free: 5.559 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.1122, allocations: 136.7 kB / 447.6 MB, free: 5.395 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.1126, allocations: 265 kB / 447.9 MB, free: 5.125 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.1126, allocations: 25.7 kB / 447.9 MB, free: 5.094 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.1127, allocations: 124.1 kB / 448 MB, free: 4.969 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.1127, allocations: 19.73 kB / 448.1 MB, free: 4.949 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.1127, allocations: 4 kB / 448.1 MB, free: 4.945 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.155e-05/0.1128, allocations: 334.7 kB / 448.4 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.612e-05/0.1129, allocations: 19.98 kB / 448.4 MB, free: 4.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.113, allocations: 73.94 kB / 448.5 MB, free: 4.496 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.787e-05/0.1132, allocations: 23.98 kB / 448.5 MB, free: 4.473 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1132, allocations: 0 / 448.5 MB, free: 4.473 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002761/0.1135, allocations: 113.4 kB / 448.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1135, allocations: 8 kB / 448.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1135, allocations: 0 / 448.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.1135, allocations: 7.984 kB / 448.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.1137, allocations: 8 kB / 448.6 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1137, allocations: 7.938 kB / 448.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.1138, allocations: 15.86 kB / 448.7 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.1138, allocations: 7.984 kB / 448.7 MB, free: 4.301 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,shiftSample1.y,shiftSample1.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.0001388/0.114, allocations: 141.8 kB / 448.8 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.592e-05/0.1141, allocations: 65.44 kB / 448.9 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.954e-05/0.1142, allocations: 17.7 kB / 448.9 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1142, allocations: 4 kB / 448.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1142, allocations: 0 / 448.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1142, allocations: 0 / 448.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002026/0.1144, allocations: 229.5 kB / 449.1 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.1144, allocations: 0 / 449.1 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.011e-05/0.1145, allocations: 11.98 kB / 449.1 MB, free: 3.777 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1145, allocations: 4.062 kB / 449.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1145, allocations: 4 kB / 449.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1145, allocations: 0 / 449.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1145, allocations: 0 / 449.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.1148, allocations: 182.2 kB / 449.3 MB, free: 3.555 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.115, allocations: 108.9 kB / 449.4 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.146e-05/0.115, allocations: 8 kB / 449.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.1151, allocations: 7.984 kB / 449.4 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.1152, allocations: 11.94 kB / 449.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1152, allocations: 4 kB / 449.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002283/0.1155, allocations: 200.4 kB / 449.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1155, allocations: 0 / 449.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003476/0.1158, allocations: 31.98 kB / 449.7 MB, free: 3.168 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,shiftSample1.y,sample.y,shiftSample1.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.001585/0.1174, allocations: 1.16 MB / 450.8 MB, free: 1.973 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002909/0.1177, allocations: 71.86 kB / 450.9 MB, free: 1.902 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1178, allocations: 0 / 450.9 MB, free: 1.902 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.1179, allocations: 27.92 kB / 450.9 MB, free: 1.875 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.1184, allocations: 52.17 kB / 451 MB, free: 1.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.1204, allocations: 1.557 MB / 452.5 MB, free: 204 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.1208, allocations: 0.7322 MB / 453.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.121, allocations: 25.53 kB / 453.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.1211, allocations: 47.41 kB / 453.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1211, allocations: 0 / 453.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03575/0.1569, allocations: 4.049 MB / 457.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003651/0.1573, allocations: 239.9 kB / 457.6 MB, free: 11 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/2.809, allocations: 4 kB / 457.6 MB, free: 11 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat