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.001257/0.001257, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001277, allocations: 64.17 kB / 306.4 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1202, allocations: 50.52 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003753/0.1241, allocations: 1.973 MB / 358.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.1261, allocations: 1.208 MB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1262, allocations: 4 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006298/0.1269, allocations: 159 kB / 360.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002966/0.1272, allocations: 127.6 kB / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.1276, allocations: 151.7 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002215/0.1278, allocations: 195.4 kB / 360.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.128, allocations: 33.66 kB / 360.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.886e-05/0.1281, allocations: 71.64 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.1282, allocations: 79.61 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.1282, allocations: 4 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.1283, allocations: 43.98 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.723e-05/0.1284, allocations: 43.78 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.778e-05/0.1285, allocations: 75.47 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.1287, allocations: 203.6 kB / 361.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1287, allocations: 4 kB / 361.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1288, allocations: 0 / 361.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1288, allocations: 0 / 361.2 MB, free: 9.816 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.0007425/0.1295, allocations: 0.5196 MB / 361.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.1296, allocations: 8.031 kB / 361.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.753e-05/0.1296, allocations: 46.67 kB / 361.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.1297, allocations: 20.66 kB / 361.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.13, allocations: 266.8 kB / 362.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.13, allocations: 4.375 kB / 362.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.508e-05/0.13, allocations: 11.94 kB / 362.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003289/0.1304, allocations: 163.5 kB / 362.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.1304, allocations: 0 / 362.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.1304, allocations: 11.94 kB / 362.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1304, allocations: 0 / 362.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.1305, allocations: 39.91 kB / 362.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005142/0.1311, allocations: 450.6 kB / 362.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.1313, allocations: 138.5 kB / 362.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.231e-05/0.1314, allocations: 59.41 kB / 362.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.1314, allocations: 0 / 362.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001677/0.1316, allocations: 104.9 kB / 363.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.1316, allocations: 3.938 kB / 363.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003566/0.132, allocations: 153.3 kB / 363.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/0.1321, allocations: 166.6 kB / 363.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/0.1323, allocations: 276.9 kB / 363.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.1324, allocations: 29.7 kB / 363.7 MB, free: 7.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.622e-05/0.1324, allocations: 124.3 kB / 363.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.1325, allocations: 19.8 kB / 363.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.1325, allocations: 29.72 kB / 363.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1326, allocations: 330.8 kB / 364.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.572e-05/0.1327, allocations: 23.98 kB / 364.2 MB, free: 6.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.574e-05/0.1328, allocations: 82.86 kB / 364.3 MB, free: 6.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.133, allocations: 93.05 kB / 364.4 MB, free: 6.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.133, allocations: 0 / 364.4 MB, free: 6.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002104/0.1332, allocations: 125.3 kB / 364.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1332, allocations: 8 kB / 364.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1332, allocations: 0 / 364.5 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.1332, allocations: 4 kB / 364.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.722e-05/0.1333, allocations: 16.14 kB / 364.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.1333, allocations: 7.938 kB / 364.5 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.318e-05/0.1334, allocations: 15.88 kB / 364.5 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.1334, allocations: 4 kB / 364.5 MB, free: 6.129 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001201/0.1336, allocations: 146.9 kB / 364.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.44e-05/0.1337, allocations: 73.34 kB / 364.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.825e-05/0.1337, allocations: 25.7 kB / 364.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1337, allocations: 8.062 kB / 364.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1337, allocations: 0 / 364.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1337, allocations: 4.25 kB / 364.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001871/0.1339, allocations: 229.6 kB / 365 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1339, allocations: 8 kB / 365 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.68e-05/0.134, allocations: 8 kB / 365 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.134, allocations: 0 / 365 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.134, allocations: 7.984 kB / 365 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.134, allocations: 0 / 365 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.134, allocations: 0 / 365 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002416/0.1343, allocations: 187.2 kB / 365.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.861e-05/0.1344, allocations: 108.8 kB / 365.3 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.1344, allocations: 8 kB / 365.3 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.244e-05/0.1345, allocations: 7.984 kB / 365.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/0.1345, allocations: 11.94 kB / 365.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1345, allocations: 4 kB / 365.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001753/0.1347, allocations: 200.5 kB / 365.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1347, allocations: 0 / 365.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002445/0.135, allocations: 31.98 kB / 365.6 MB, free: 4.973 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001301/0.1363, allocations: 1.013 MB / 366.6 MB, free: 4.059 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001934/0.1365, allocations: 75.84 kB / 366.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1365, allocations: 0 / 366.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.001e-05/0.1366, allocations: 36.3 kB / 366.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.137, allocations: 72.3 kB / 366.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.1391, allocations: 2.053 MB / 368.8 MB, free: 1.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.1393, allocations: 0.7283 MB / 369.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.255e-05/0.1394, allocations: 29.52 kB / 369.6 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.278e-05/0.1395, allocations: 51.41 kB / 369.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1395, allocations: 7.938 kB / 369.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2111/0.3506, allocations: 4.47 MB / 374.1 MB, free: 18.92 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/0.3508, allocations: 257.3 kB / 374.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.204, allocations: 2.812 kB / 374.4 MB, free: 18.67 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/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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time