Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",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.0009826/0.0009825, allocations: 95.89 kB / 16.3 MB, free: 6.461 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.001093/0.001093, allocations: 173.3 kB / 17.19 MB, free: 6.348 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.544/1.544, allocations: 223.2 MB / 241.1 MB, free: 14.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000306/0.000306, allocations: 8 kB / 300.8 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.11, allocations: 50.41 MB / 351.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.002451/0.1125, allocations: 1.566 MB / 352.8 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.1141, allocations: 0.9672 MB / 353.8 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.1143, allocations: 7.938 kB / 353.8 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006062/0.1149, allocations: 127.7 kB / 353.9 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.1151, allocations: 99.69 kB / 354 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005748/0.1157, allocations: 162.8 kB / 354.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.1159, allocations: 115.8 kB / 354.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.1161, allocations: 33.55 kB / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.1162, allocations: 67.69 kB / 354.4 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.1163, allocations: 59.7 kB / 354.4 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.1163, allocations: 4 kB / 354.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.1164, allocations: 35.91 kB / 354.5 MB, free: 476 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.1165, allocations: 39.83 kB / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.203e-05/0.1166, allocations: 49.64 kB / 354.6 MB, free: 380 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.1168, allocations: 156 kB / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.1168, allocations: 0 / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd: time 4.889e-06/0.1168, allocations: 0 / 354.7 MB, free: 224 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1168, allocations: 3.938 kB / 354.7 MB, free: 220 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007737/0.1176, allocations: 492 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1177, allocations: 12.02 kB / 355.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.862e-05/0.1177, allocations: 38.56 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.264e-05/0.1178, allocations: 19.72 kB / 355.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.1182, allocations: 257.7 kB / 355.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.1182, allocations: 15.97 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.1182, allocations: 4 kB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.1186, allocations: 159.6 kB / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1186, allocations: 4 kB / 355.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.1186, allocations: 11.88 kB / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1186, allocations: 0 / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.947e-05/0.1187, allocations: 39.92 kB / 355.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005482/0.1193, allocations: 454.5 kB / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.1195, allocations: 130.5 kB / 356.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.1196, allocations: 4 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000166/0.1197, allocations: 93.16 kB / 356.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.432e-06/0.1198, allocations: 3.938 kB / 356.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003665/0.1201, allocations: 153.7 kB / 356.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.1203, allocations: 166.2 kB / 356.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/0.1205, allocations: 268.9 kB / 357 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.1206, allocations: 25.7 kB / 357 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.1207, allocations: 120.5 kB / 357.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.966e-05/0.1207, allocations: 15.81 kB / 357.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.772e-06/0.1207, allocations: 4 kB / 357.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1208, allocations: 330.9 kB / 357.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.079e-05/0.1209, allocations: 23.98 kB / 357.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.463e-05/0.121, allocations: 78.8 kB / 357.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.446e-05/0.1211, allocations: 32.03 kB / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1211, allocations: 0 / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002108/0.1213, allocations: 129.3 kB / 357.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.1214, allocations: 4 kB / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.1214, allocations: 4 kB / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1214, allocations: 0 / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.067e-05/0.1215, allocations: 20.09 kB / 357.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1215, allocations: 4 kB / 357.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.763e-05/0.1216, allocations: 20.14 kB / 357.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.1216, allocations: 7.984 kB / 357.8 MB, free: 12.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,hold1.u,hold1.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 (13): * Single equations (assignments): 13 * 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.0001243/0.1217, allocations: 141.8 kB / 357.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.979e-05/0.1218, allocations: 73.41 kB / 358 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.538e-05/0.1219, allocations: 25.7 kB / 358 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1219, allocations: 4.062 kB / 358 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.1219, allocations: 4 kB / 358 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1219, allocations: 0 / 358 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002051/0.1222, allocations: 225.6 kB / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1222, allocations: 3.938 kB / 358.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-05/0.1222, allocations: 7.938 kB / 358.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1222, allocations: 3.984 kB / 358.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.1222, allocations: 11.95 kB / 358.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.1222, allocations: 0 / 358.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.1222, allocations: 4 kB / 358.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.1225, allocations: 204.5 kB / 358.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.1227, allocations: 108.8 kB / 358.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.1227, allocations: 11.98 kB / 358.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.687e-05/0.1228, allocations: 8 kB / 358.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.1228, allocations: 11.92 kB / 358.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.1228, allocations: 4 kB / 358.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.123, allocations: 192.5 kB / 358.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.123, allocations: 4 kB / 358.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000266/0.1233, allocations: 35.84 kB / 358.9 MB, free: 11.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,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 (11): * Single equations (assignments): 9 * 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.0014/0.1247, allocations: 1.269 MB / 360.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002082/0.1249, allocations: 71.91 kB / 360.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.1249, allocations: 0 / 360.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.889e-05/0.125, allocations: 31.92 kB / 360.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.1254, allocations: 74.08 kB / 360.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.1274, allocations: 1.731 MB / 362 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.1278, allocations: 0.7439 MB / 362.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.1279, allocations: 17.55 kB / 362.8 MB, free: 7.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.128, allocations: 51.42 kB / 362.8 MB, free: 7.613 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1281, allocations: 0 / 362.8 MB, free: 7.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.1469, allocations: 4.168 MB / 367 MB, free: 3.602 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002385/0.1472, allocations: 226.3 kB / 367.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.124, allocations: 0 / 367.2 MB, free: 3.367 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat