Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",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.001715/0.001721, allocations: 180.1 kB / 15.81 MB, free: 6.352 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.456/2.456, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001159/0.001158, allocations: 94.86 kB / 270.3 MB, free: 13.38 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.1066/0.1066, allocations: 12.61 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000563/0.0005633, allocations: 18.73 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1126, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.003912/0.1166, allocations: 1.569 MB / 444 MB, free: 9.266 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002979/0.1196, allocations: 0.9018 MB / 444.9 MB, free: 8.355 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002039/0.1199, allocations: 7.938 kB / 445 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.1209, allocations: 129.7 kB / 445.1 MB, free: 8.223 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000437/0.1214, allocations: 99.67 kB / 445.2 MB, free: 8.125 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.1224, allocations: 151.4 kB / 445.3 MB, free: 7.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.1228, allocations: 115.7 kB / 445.4 MB, free: 7.867 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.123, allocations: 38.08 kB / 445.5 MB, free: 7.828 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.1232, allocations: 63.69 kB / 445.5 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.1234, allocations: 55.72 kB / 445.6 MB, free: 7.711 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.1234, allocations: 4 kB / 445.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.1237, allocations: 31.97 kB / 445.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-05/0.1238, allocations: 35.91 kB / 445.7 MB, free: 7.641 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.655e-05/0.1239, allocations: 49.58 kB / 445.7 MB, free: 7.586 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.1242, allocations: 159.9 kB / 445.9 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1243, allocations: 0 / 445.9 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1243, allocations: 0 / 445.9 MB, free: 7.43 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1243, allocations: 0 / 445.9 MB, free: 7.43 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009953/0.1253, allocations: 0.4883 MB / 446.4 MB, free: 6.887 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.1254, allocations: 8.031 kB / 446.4 MB, free: 6.879 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.714e-05/0.1255, allocations: 42.5 kB / 446.4 MB, free: 6.828 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.996e-05/0.1256, allocations: 23.72 kB / 446.4 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005131/0.1261, allocations: 257.7 kB / 446.7 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.1261, allocations: 4 kB / 446.7 MB, free: 6.512 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.308e-05/0.1262, allocations: 8 kB / 446.7 MB, free: 6.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005481/0.1268, allocations: 167.5 kB / 446.9 MB, free: 6.312 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.1268, allocations: 4 kB / 446.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.1268, allocations: 0 / 446.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.1269, allocations: 0 / 446.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.1271, allocations: 43.92 kB / 446.9 MB, free: 6.266 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008177/0.1279, allocations: 450.5 kB / 447.3 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004547/0.1284, allocations: 142.5 kB / 447.5 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.815e-05/0.1285, allocations: 0 / 447.5 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.1288, allocations: 97.16 kB / 447.6 MB, free: 5.477 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.895e-06/0.1288, allocations: 0 / 447.6 MB, free: 5.477 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007279/0.1295, allocations: 153.4 kB / 447.7 MB, free: 5.32 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.1296, allocations: 166.5 kB / 447.9 MB, free: 5.121 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.1302, allocations: 272.9 kB / 448.2 MB, free: 4.844 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.1302, allocations: 25.7 kB / 448.2 MB, free: 4.812 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.1303, allocations: 116.4 kB / 448.3 MB, free: 4.695 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.734e-05/0.1304, allocations: 23.73 kB / 448.3 MB, free: 4.672 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.285e-05/0.1304, allocations: 4 kB / 448.3 MB, free: 4.668 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.755e-05/0.1305, allocations: 326.8 kB / 448.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.1307, allocations: 27.98 kB / 448.7 MB, free: 4.312 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.1309, allocations: 74.86 kB / 448.7 MB, free: 4.215 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.1311, allocations: 35.92 kB / 448.8 MB, free: 4.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1312, allocations: 0 / 448.8 MB, free: 4.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004952/0.1317, allocations: 129.4 kB / 448.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.1317, allocations: 4 kB / 448.9 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1317, allocations: 4 kB / 448.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/0.1318, allocations: 0 / 448.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.132, allocations: 12 kB / 448.9 MB, free: 4.027 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.132, allocations: 7.938 kB / 448.9 MB, free: 4.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.1322, allocations: 15.84 kB / 448.9 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.1322, allocations: 12.16 kB / 449 MB, free: 3.992 MB / 282.7 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,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.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.0002034/0.1325, allocations: 149.5 kB / 449.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.1327, allocations: 69.44 kB / 449.2 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.73e-05/0.1328, allocations: 21.72 kB / 449.2 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.1328, allocations: 0 / 449.2 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.1328, allocations: 3.984 kB / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.1329, allocations: 11.89 kB / 449.2 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003328/0.1332, allocations: 222 kB / 449.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.1332, allocations: 8.062 kB / 449.4 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.708e-05/0.1333, allocations: 15.98 kB / 449.4 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.1333, allocations: 0 / 449.4 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.1334, allocations: 4 kB / 449.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1334, allocations: 0 / 449.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.1334, allocations: 4 kB / 449.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004997/0.1339, allocations: 212.4 kB / 449.7 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.1341, allocations: 112.8 kB / 449.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.31e-05/0.1342, allocations: 11.95 kB / 449.8 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.1344, allocations: 4 kB / 449.8 MB, free: 3.031 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.325e-05/0.1344, allocations: 7.984 kB / 449.8 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.1345, allocations: 8 kB / 449.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003596/0.1349, allocations: 192.5 kB / 450 MB, free: 2.824 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.1349, allocations: 0 / 450 MB, free: 2.824 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006055/0.1355, allocations: 31.91 kB / 450 MB, free: 2.793 MB / 282.7 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,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.002466/0.138, allocations: 1.258 MB / 451.3 MB, free: 1.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005047/0.1386, allocations: 72.11 kB / 451.4 MB, free: 1.422 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.1386, allocations: 4.062 kB / 451.4 MB, free: 1.418 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.1388, allocations: 27.98 kB / 451.4 MB, free: 1.391 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008216/0.1396, allocations: 68.11 kB / 451.5 MB, free: 1.328 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.1433, allocations: 1.75 MB / 453.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006106/0.144, allocations: 0.7322 MB / 453.9 MB, free: 14.74 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002198/0.1442, allocations: 25.53 kB / 454 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.1444, allocations: 51.42 kB / 454 MB, free: 14.66 MB / 298.7 MB Notification: Performance of SimCode: time 1.553e-06/0.1444, allocations: 0 / 454 MB, free: 14.66 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03523/0.1797, allocations: 4.173 MB / 458.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004058/0.1802, allocations: 239.9 kB / 458.4 MB, free: 10.24 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.771/2.951, allocations: 0 / 458.4 MB, free: 10.24 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat