Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001006, allocations: 91.84 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 187.2 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.547/1.547, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002895, allocations: 5.906 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1275, allocations: 50.43 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002515/0.1301, allocations: 1.557 MB / 352.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.1317, allocations: 0.9555 MB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1319, allocations: 3.938 kB / 353.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005974/0.1325, allocations: 135.6 kB / 353.9 MB, free: 9 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.1328, allocations: 95.69 kB / 354 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005588/0.1333, allocations: 170.8 kB / 354.1 MB, free: 8.742 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002088/0.1336, allocations: 107.8 kB / 354.2 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.1337, allocations: 25.55 kB / 354.3 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1338, allocations: 59.7 kB / 354.3 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.1339, allocations: 59.75 kB / 354.4 MB, free: 8.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.1339, allocations: 4 kB / 354.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.1341, allocations: 31.92 kB / 354.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.697e-05/0.1341, allocations: 35.91 kB / 354.5 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.593e-05/0.1342, allocations: 49.58 kB / 354.5 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.1344, allocations: 155.7 kB / 354.7 MB, free: 8.219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1344, allocations: 0 / 354.7 MB, free: 8.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.1345, allocations: 0 / 354.7 MB, free: 8.219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1345, allocations: 0 / 354.7 MB, free: 8.219 MB / 286.1 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.0007304/0.1352, allocations: 488.1 kB / 355.1 MB, free: 7.688 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1352, allocations: 8.031 kB / 355.1 MB, free: 7.68 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.235e-05/0.1353, allocations: 34.56 kB / 355.2 MB, free: 7.637 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.1354, allocations: 31.75 kB / 355.2 MB, free: 7.605 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.1357, allocations: 253.7 kB / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.1357, allocations: 4 kB / 355.5 MB, free: 7.316 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.1357, allocations: 4 kB / 355.5 MB, free: 7.312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.1361, allocations: 154.7 kB / 355.6 MB, free: 7.137 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1361, allocations: 0 / 355.6 MB, free: 7.137 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.1361, allocations: 0 / 355.6 MB, free: 7.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.1361, allocations: 7.938 kB / 355.6 MB, free: 7.129 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001037/0.1362, allocations: 39.92 kB / 355.7 MB, free: 7.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004943/0.1367, allocations: 354.4 kB / 356 MB, free: 6.688 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.1369, allocations: 107.8 kB / 356.1 MB, free: 6.555 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.137, allocations: 8.188 kB / 356.1 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/0.1372, allocations: 83.34 kB / 356.2 MB, free: 6.453 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.1372, allocations: 0 / 356.2 MB, free: 6.453 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003519/0.1375, allocations: 137.4 kB / 356.3 MB, free: 6.312 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.1376, allocations: 136.4 kB / 356.5 MB, free: 6.148 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.1379, allocations: 265.2 kB / 356.7 MB, free: 5.883 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.1379, allocations: 33.7 kB / 356.8 MB, free: 5.844 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.765e-05/0.138, allocations: 116.1 kB / 356.9 MB, free: 5.727 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.138, allocations: 15.81 kB / 356.9 MB, free: 5.711 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.138, allocations: 4 kB / 356.9 MB, free: 5.707 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1382, allocations: 326.8 kB / 357.2 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.817e-05/0.1382, allocations: 20 kB / 357.2 MB, free: 5.359 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.1383, allocations: 69.98 kB / 357.3 MB, free: 5.27 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.657e-05/0.1384, allocations: 27.94 kB / 357.3 MB, free: 5.242 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1384, allocations: 0 / 357.3 MB, free: 5.242 MB / 286.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001963/0.1386, allocations: 113.5 kB / 357.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1387, allocations: 11.98 kB / 357.4 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1387, allocations: 0 / 357.4 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1387, allocations: 4 kB / 357.5 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.331e-05/0.1388, allocations: 11.94 kB / 357.5 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1388, allocations: 7.984 kB / 357.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.563e-05/0.1389, allocations: 7.938 kB / 357.5 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.1389, allocations: 4 kB / 357.5 MB, free: 5.078 MB / 286.1 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.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.0001121/0.139, allocations: 137.8 kB / 357.6 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.808e-05/0.1391, allocations: 77.34 kB / 357.7 MB, free: 4.852 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.246e-05/0.1391, allocations: 21.67 kB / 357.7 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1392, allocations: 0 / 357.7 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1392, allocations: 0 / 357.7 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1392, allocations: 7.984 kB / 357.7 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.1394, allocations: 217.6 kB / 357.9 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1394, allocations: 0 / 357.9 MB, free: 4.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.734e-05/0.1394, allocations: 7.938 kB / 357.9 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.1394, allocations: 0 / 357.9 MB, free: 4.547 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.1394, allocations: 8.062 kB / 358 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1395, allocations: 8.266 kB / 358 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1395, allocations: 3.938 kB / 358 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002464/0.1397, allocations: 178 kB / 358.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.744e-05/0.1398, allocations: 124.7 kB / 358.3 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.1399, allocations: 4 kB / 358.3 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.124e-05/0.1399, allocations: 4 kB / 358.3 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.708e-05/0.14, allocations: 7.984 kB / 358.3 MB, free: 4.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.14, allocations: 8 kB / 358.3 MB, free: 4.152 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000168/0.1402, allocations: 192.5 kB / 358.5 MB, free: 3.965 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1402, allocations: 0 / 358.5 MB, free: 3.965 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002572/0.1404, allocations: 28 kB / 358.5 MB, free: 3.938 MB / 286.1 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.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.00138/0.1418, allocations: 1.171 MB / 359.7 MB, free: 2.887 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001964/0.142, allocations: 71.84 kB / 359.7 MB, free: 2.816 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1421, allocations: 0 / 359.7 MB, free: 2.816 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.287e-05/0.1421, allocations: 23.98 kB / 359.8 MB, free: 2.793 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.1425, allocations: 52.44 kB / 359.8 MB, free: 2.742 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.1442, allocations: 1.556 MB / 361.4 MB, free: 1.102 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1445, allocations: 0.7322 MB / 362.1 MB, free: 352 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.548e-05/0.1446, allocations: 21.53 kB / 362.1 MB, free: 332 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.323e-05/0.1447, allocations: 47.42 kB / 362.2 MB, free: 284 kB / 286.1 MB Notification: Performance of SimCode: time 3e-07/0.1447, allocations: 0 / 362.2 MB, free: 284 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.1669, allocations: 4.044 MB / 366.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002995/0.1672, allocations: 242 kB / 366.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.091, allocations: 3.938 kB / 366.5 MB, free: 12.17 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat