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.001373/0.001373, allocations: 172.9 kB / 15.81 MB, free: 6.285 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.519/1.519, allocations: 205.4 MB / 222 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.00078/0.0007801, allocations: 90.34 kB / 270.3 MB, free: 13.36 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.09958/0.09958, allocations: 12.59 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004682/0.0004683, allocations: 12.94 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1232, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00277/0.126, allocations: 1.549 MB / 444.1 MB, free: 9.277 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.1279, allocations: 0.9214 MB / 445 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.1282, allocations: 0 / 445 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000711/0.1289, allocations: 131.6 kB / 445.1 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.1293, allocations: 91.69 kB / 445.2 MB, free: 8.129 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006772/0.13, allocations: 162.5 kB / 445.4 MB, free: 7.973 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003328/0.1303, allocations: 155.5 kB / 445.5 MB, free: 7.82 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.1305, allocations: 29.52 kB / 445.5 MB, free: 7.789 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.1306, allocations: 59.7 kB / 445.6 MB, free: 7.73 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.1308, allocations: 67.69 kB / 445.7 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/0.1308, allocations: 4 kB / 445.7 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.131, allocations: 47.86 kB / 445.7 MB, free: 7.613 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.289e-05/0.1311, allocations: 39.89 kB / 445.7 MB, free: 7.574 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.586e-05/0.1312, allocations: 49.58 kB / 445.8 MB, free: 7.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.1315, allocations: 148.5 kB / 445.9 MB, free: 7.375 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.1315, allocations: 0 / 445.9 MB, free: 7.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1315, allocations: 4 kB / 445.9 MB, free: 7.371 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1315, allocations: 0 / 445.9 MB, free: 7.371 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.0008778/0.1324, allocations: 488.1 kB / 446.4 MB, free: 6.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.1325, allocations: 12.03 kB / 446.4 MB, free: 6.828 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.092e-05/0.1325, allocations: 38.56 kB / 446.5 MB, free: 6.781 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.953e-05/0.1326, allocations: 15.81 kB / 446.5 MB, free: 6.766 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003757/0.133, allocations: 257.6 kB / 446.7 MB, free: 6.477 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.133, allocations: 11.98 kB / 446.7 MB, free: 6.465 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.133, allocations: 4 kB / 446.8 MB, free: 6.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003886/0.1334, allocations: 142.7 kB / 446.9 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1335, allocations: 0 / 446.9 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.1335, allocations: 0 / 446.9 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.1335, allocations: 4 kB / 446.9 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.1337, allocations: 35.92 kB / 446.9 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005638/0.1342, allocations: 366.4 kB / 447.3 MB, free: 5.844 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.1345, allocations: 111.8 kB / 447.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1346, allocations: 46.56 kB / 447.4 MB, free: 5.652 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.1347, allocations: 4 kB / 447.4 MB, free: 5.648 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.1349, allocations: 67.39 kB / 447.5 MB, free: 5.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.325e-06/0.1349, allocations: 0 / 447.5 MB, free: 5.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004454/0.1353, allocations: 149.5 kB / 447.7 MB, free: 5.418 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.1354, allocations: 136.5 kB / 447.8 MB, free: 5.254 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.1357, allocations: 261 kB / 448 MB, free: 4.988 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1358, allocations: 25.7 kB / 448.1 MB, free: 4.957 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.353e-05/0.1359, allocations: 116.1 kB / 448.2 MB, free: 4.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.1359, allocations: 23.67 kB / 448.2 MB, free: 4.816 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/0.1359, allocations: 4 kB / 448.2 MB, free: 4.812 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.978e-05/0.136, allocations: 326.9 kB / 448.5 MB, free: 4.484 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.992e-05/0.1361, allocations: 23.98 kB / 448.6 MB, free: 4.461 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.654e-05/0.1362, allocations: 66 kB / 448.6 MB, free: 4.375 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.48e-05/0.1363, allocations: 31.95 kB / 448.6 MB, free: 4.344 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1363, allocations: 4 kB / 448.7 MB, free: 4.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002618/0.1366, allocations: 109.4 kB / 448.8 MB, free: 4.227 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1366, allocations: 4 kB / 448.8 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.1366, allocations: 4 kB / 448.8 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1367, allocations: 3.984 kB / 448.8 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.1368, allocations: 12 kB / 448.8 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1368, allocations: 7.891 kB / 448.8 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.1369, allocations: 12.03 kB / 448.8 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.1369, allocations: 8 kB / 448.8 MB, free: 4.176 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.0001323/0.1371, allocations: 145.5 kB / 449 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.039e-05/0.1372, allocations: 65.48 kB / 449 MB, free: 3.953 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.001e-05/0.1373, allocations: 21.7 kB / 449 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1373, allocations: 0 / 449 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.1373, allocations: 4 kB / 449 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1373, allocations: 4.016 kB / 449 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.1375, allocations: 225.9 kB / 449.3 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1375, allocations: 0 / 449.3 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.621e-05/0.1376, allocations: 19.92 kB / 449.3 MB, free: 3.637 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.1376, allocations: 4 kB / 449.3 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.1376, allocations: 0 / 449.3 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1376, allocations: 0 / 449.3 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1376, allocations: 4 kB / 449.3 MB, free: 3.629 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002788/0.1379, allocations: 162.4 kB / 449.5 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.778e-05/0.138, allocations: 104.9 kB / 449.6 MB, free: 3.324 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.935e-05/0.1381, allocations: 11.94 kB / 449.6 MB, free: 3.312 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.865e-05/0.1382, allocations: 7.984 kB / 449.6 MB, free: 3.305 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.1382, allocations: 4 kB / 449.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.1383, allocations: 4 kB / 449.6 MB, free: 3.297 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002191/0.1385, allocations: 192.5 kB / 449.8 MB, free: 3.105 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1385, allocations: 4 kB / 449.8 MB, free: 3.102 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004023/0.1389, allocations: 31.98 kB / 449.8 MB, free: 3.07 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.001448/0.1404, allocations: 1.008 MB / 450.8 MB, free: 2.031 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.1406, allocations: 63.86 kB / 450.9 MB, free: 1.969 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1407, allocations: 0 / 450.9 MB, free: 1.969 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.474e-05/0.1407, allocations: 27.98 kB / 450.9 MB, free: 1.941 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.1414, allocations: 64.11 kB / 451 MB, free: 1.883 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.1433, allocations: 0.9728 MB / 451.9 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.1435, allocations: 0.7322 MB / 452.7 MB, free: 84 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1437, allocations: 17.55 kB / 452.7 MB, free: 68 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.503e-05/0.1438, allocations: 47.42 kB / 452.7 MB, free: 20 kB / 282.7 MB Notification: Performance of SimCode: time 6.42e-07/0.1438, allocations: 0 / 452.7 MB, free: 20 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.1661, allocations: 4.056 MB / 456.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003341/0.1665, allocations: 254.2 kB / 457 MB, free: 11.62 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/1.868, allocations: 0 / 457 MB, free: 11.62 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