Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001082/0.001082, allocations: 94.59 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 192.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.6/1.6, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002364/0.0002365, allocations: 11.97 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1204, allocations: 51.49 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.002352/0.1227, allocations: 1.595 MB / 359.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.1248, allocations: 1.15 MB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.1249, allocations: 0 / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005934/0.1255, allocations: 139.6 kB / 361.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003373/0.1259, allocations: 123.6 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.1264, allocations: 179.2 kB / 361.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002219/0.1266, allocations: 179.4 kB / 361.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.1268, allocations: 33.64 kB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.1269, allocations: 71.62 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.127, allocations: 71.62 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.127, allocations: 4 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.1271, allocations: 43.98 kB / 361.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.488e-05/0.1272, allocations: 35.84 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.314e-05/0.1273, allocations: 49.64 kB / 362 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.1275, allocations: 163.9 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1275, allocations: 0 / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1275, allocations: 4 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1275, allocations: 0 / 362.1 MB, free: 10.16 MB / 302.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.0007403/0.1283, allocations: 0.4884 MB / 362.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1283, allocations: 8.031 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.086e-05/0.1284, allocations: 42.55 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.43e-05/0.1284, allocations: 23.72 kB / 362.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.1288, allocations: 253.7 kB / 362.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.1288, allocations: 11.95 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.1289, allocations: 7.938 kB / 362.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.1292, allocations: 170.1 kB / 363.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1293, allocations: 0 / 363.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.1293, allocations: 0 / 363.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.1293, allocations: 4 kB / 363.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.1294, allocations: 47.89 kB / 363.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/0.1301, allocations: 454.4 kB / 363.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.1303, allocations: 130.5 kB / 363.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.1304, allocations: 55.42 kB / 363.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.1305, allocations: 7.938 kB / 363.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.1307, allocations: 89.09 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.1307, allocations: 4 kB / 363.9 MB, free: 8.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003857/0.1311, allocations: 157.2 kB / 364 MB, free: 7.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.1312, allocations: 166.6 kB / 364.2 MB, free: 7.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.1315, allocations: 269 kB / 364.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.1315, allocations: 37.64 kB / 364.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1316, allocations: 120.3 kB / 364.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.213e-05/0.1317, allocations: 27.8 kB / 364.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/0.1317, allocations: 4 kB / 364.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1318, allocations: 330.8 kB / 365 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.102e-05/0.1319, allocations: 19.98 kB / 365 MB, free: 6.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.132, allocations: 78.86 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.473e-05/0.1321, allocations: 31.98 kB / 365.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1321, allocations: 0 / 365.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002172/0.1323, allocations: 133.3 kB / 365.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1324, allocations: 4 kB / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1324, allocations: 4 kB / 365.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1324, allocations: 0 / 365.2 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1325, allocations: 19.92 kB / 365.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.1325, allocations: 0 / 365.3 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.087e-05/0.1326, allocations: 8 kB / 365.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.1326, allocations: 4.156 kB / 365.3 MB, free: 6.645 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.0001366/0.1328, allocations: 154.8 kB / 365.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.1329, allocations: 69.41 kB / 365.5 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.306e-05/0.1329, allocations: 25.7 kB / 365.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.1329, allocations: 7.922 kB / 365.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.1329, allocations: 4 kB / 365.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1329, allocations: 0 / 365.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002113/0.1332, allocations: 233.5 kB / 365.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1332, allocations: 64 / 365.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.58e-05/0.1332, allocations: 11.94 kB / 365.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1332, allocations: 4 kB / 365.8 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.1332, allocations: 3.984 kB / 365.8 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.1332, allocations: 4 kB / 365.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1332, allocations: 320 / 365.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.1335, allocations: 179.2 kB / 366 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.1336, allocations: 124.7 kB / 366.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.1337, allocations: 0 / 366.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.433e-05/0.1337, allocations: 11.98 kB / 366.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.1338, allocations: 4 kB / 366.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1338, allocations: 11.98 kB / 366.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.134, allocations: 200.5 kB / 366.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.134, allocations: 3.938 kB / 366.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002485/0.1343, allocations: 32 kB / 366.3 MB, free: 5.469 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.001367/0.1356, allocations: 1.027 MB / 367.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.1359, allocations: 71.84 kB / 367.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1359, allocations: 0 / 367.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.855e-05/0.136, allocations: 35.92 kB / 367.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.1364, allocations: 60.42 kB / 367.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.138, allocations: 1.054 MB / 368.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.1384, allocations: 0.7282 MB / 369.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.839e-05/0.1385, allocations: 33.45 kB / 369.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.1386, allocations: 51.42 kB / 369.4 MB, free: 2.422 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1386, allocations: 0 / 369.4 MB, free: 2.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2408/0.3794, allocations: 4.261 MB / 373.7 MB, free: 19.01 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001819/0.3796, allocations: 226.8 kB / 373.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.215/2.594, allocations: 0 / 373.9 MB, free: 18.77 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat