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.0006756/0.0006756, allocations: 96.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007878/0.0007877, allocations: 201.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.000264, allocations: 11.98 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09409, allocations: 51.51 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.00213/0.09625, allocations: 1.618 MB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.09807, allocations: 1.173 MB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.09822, allocations: 11.94 kB / 362.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005026/0.09873, allocations: 139.6 kB / 362.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.09907, allocations: 135.6 kB / 362.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.09953, allocations: 155 kB / 362.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.09979, allocations: 191.4 kB / 362.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.0999, allocations: 41.64 kB / 362.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.1, allocations: 67.64 kB / 362.9 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.1001, allocations: 71.56 kB / 362.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.1002, allocations: 4 kB / 362.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.1003, allocations: 47.98 kB / 363 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.884e-05/0.1004, allocations: 43.77 kB / 363 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.084e-05/0.1004, allocations: 93.19 kB / 363.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.1007, allocations: 211.5 kB / 363.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1007, allocations: 0 / 363.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1007, allocations: 0 / 363.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1007, allocations: 0 / 363.3 MB, free: 9.199 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.0006208/0.1013, allocations: 496.3 kB / 363.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.1014, allocations: 12.03 kB / 363.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.1014, allocations: 34.75 kB / 363.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.804e-05/0.1015, allocations: 24.66 kB / 363.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.1018, allocations: 274.7 kB / 364.2 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.1018, allocations: 4.375 kB / 364.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.1019, allocations: 15.94 kB / 364.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003119/0.1022, allocations: 163.6 kB / 364.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1022, allocations: 0 / 364.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.1022, allocations: 8 kB / 364.3 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1022, allocations: 0 / 364.3 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.532e-05/0.1023, allocations: 35.92 kB / 364.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.1028, allocations: 458.5 kB / 364.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.1031, allocations: 134.5 kB / 365 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.1032, allocations: 59.36 kB / 365 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.1033, allocations: 4 kB / 365 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/0.1035, allocations: 93.09 kB / 365.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 3.437e-06/0.1035, allocations: 0 / 365.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004065/0.1039, allocations: 161.2 kB / 365.3 MB, free: 6.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.5e-05/0.104, allocations: 162.2 kB / 365.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1043, allocations: 280.9 kB / 365.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1043, allocations: 30.08 kB / 365.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.42e-05/0.1044, allocations: 124.3 kB / 365.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.695e-05/0.1044, allocations: 19.88 kB / 365.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-05/0.1045, allocations: 21.7 kB / 365.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1046, allocations: 330.8 kB / 366.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.415e-05/0.1046, allocations: 20 kB / 366.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.605e-05/0.1047, allocations: 86.84 kB / 366.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.1049, allocations: 85.08 kB / 366.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1049, allocations: 4 kB / 366.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002132/0.1051, allocations: 125.4 kB / 366.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1051, allocations: 4 kB / 366.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1052, allocations: 4 kB / 366.5 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.1052, allocations: 3.938 kB / 366.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.787e-05/0.1053, allocations: 16 kB / 366.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.1053, allocations: 3.984 kB / 366.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.687e-05/0.1053, allocations: 23.88 kB / 366.6 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.1054, allocations: 8 kB / 366.6 MB, free: 5.551 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.0001227/0.1055, allocations: 150.8 kB / 366.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/0.1056, allocations: 65.81 kB / 366.8 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.1057, allocations: 25.7 kB / 366.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1057, allocations: 3.984 kB / 366.8 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.1057, allocations: 8 kB / 366.8 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1057, allocations: 3.938 kB / 366.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.1059, allocations: 237.5 kB / 367.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1059, allocations: 3.938 kB / 367.1 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.468e-05/0.106, allocations: 4 kB / 367.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.106, allocations: 4 kB / 367.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.106, allocations: 0 / 367.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.106, allocations: 4 kB / 367.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.106, allocations: 0 / 367.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/0.1062, allocations: 179.3 kB / 367.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.664e-05/0.1064, allocations: 120.7 kB / 367.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.1064, allocations: 4 kB / 367.4 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.36e-05/0.1065, allocations: 7.984 kB / 367.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.1065, allocations: 11.94 kB / 367.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1065, allocations: 4 kB / 367.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.1067, allocations: 200.5 kB / 367.6 MB, free: 4.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1067, allocations: 4 kB / 367.6 MB, free: 4.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.107, allocations: 31.98 kB / 367.6 MB, free: 4.391 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.001293/0.1083, allocations: 1.017 MB / 368.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001889/0.1085, allocations: 75.84 kB / 368.7 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1085, allocations: 0 / 368.7 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.427e-05/0.1086, allocations: 35.92 kB / 368.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.109, allocations: 68.72 kB / 368.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.111, allocations: 2.051 MB / 370.9 MB, free: 1.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.1112, allocations: 0.7361 MB / 371.6 MB, free: 360 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.419e-05/0.1113, allocations: 25.53 kB / 371.6 MB, free: 336 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.461e-05/0.1114, allocations: 47.42 kB / 371.7 MB, free: 288 kB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1114, allocations: 0 / 371.7 MB, free: 288 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1625/0.274, allocations: 4.277 MB / 376 MB, free: 18.54 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/0.2741, allocations: 259.2 kB / 376.2 MB, free: 18.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/1.991, allocations: 0 / 376.2 MB, free: 18.28 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