Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.00163, allocations: 194.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008085/0.0008082, allocations: 103.3 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002397/0.0002397, allocations: 4 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2861, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.002188/0.2883, allocations: 1.607 MB / 409.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.2898, allocations: 1.126 MB / 410.9 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.29, allocations: 0 / 410.9 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000567/0.2905, allocations: 138.9 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002843/0.2909, allocations: 127.6 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004545/0.2913, allocations: 176.5 kB / 411.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.2915, allocations: 172.1 kB / 411.5 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.2917, allocations: 36.31 kB / 411.5 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.41e-05/0.2918, allocations: 67.64 kB / 411.6 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.998e-05/0.2919, allocations: 71.61 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.2919, allocations: 4 kB / 411.6 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.292, allocations: 45.23 kB / 411.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.828e-05/0.2921, allocations: 35.84 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.371e-05/0.2922, allocations: 89.23 kB / 411.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001898/0.2924, allocations: 167 kB / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.2924, allocations: 0 / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.2924, allocations: 0 / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2924, allocations: 0 / 412 MB, free: 23.86 MB / 298.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.0006854/0.2931, allocations: 0.4908 MB / 412.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.2932, allocations: 11.97 kB / 412.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.652e-05/0.2932, allocations: 42.73 kB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.753e-05/0.2933, allocations: 20.66 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.2936, allocations: 266.8 kB / 412.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2936, allocations: 8.375 kB / 412.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.2937, allocations: 11.06 kB / 412.8 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.294, allocations: 167.6 kB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.294, allocations: 0 / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.2941, allocations: 0 / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.649e-06/0.2941, allocations: 4 kB / 413 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.2942, allocations: 35.92 kB / 413 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004947/0.2947, allocations: 458.4 kB / 413.5 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.2949, allocations: 130.5 kB / 413.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.019e-05/0.295, allocations: 59.36 kB / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.295, allocations: 7.984 kB / 413.7 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001615/0.2952, allocations: 97.11 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.2952, allocations: 0 / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003484/0.2956, allocations: 157.2 kB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.2956, allocations: 166.2 kB / 414.1 MB, free: 21.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.2958, allocations: 268.9 kB / 414.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.2959, allocations: 34.08 kB / 414.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.2959, allocations: 124.4 kB / 414.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.2959, allocations: 19.72 kB / 414.5 MB, free: 21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.296, allocations: 4 kB / 414.5 MB, free: 21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.81e-05/0.296, allocations: 330.8 kB / 414.8 MB, free: 20.67 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.467e-05/0.2961, allocations: 16 kB / 414.9 MB, free: 20.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.102e-05/0.2962, allocations: 82.84 kB / 414.9 MB, free: 20.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.2963, allocations: 89.33 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2963, allocations: 32 / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001811/0.2965, allocations: 129.4 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.2965, allocations: 8 kB / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2965, allocations: 0 / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2965, allocations: 0 / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.88e-05/0.2966, allocations: 19.92 kB / 415.2 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.2966, allocations: 4 kB / 415.2 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.186e-05/0.2967, allocations: 15.88 kB / 415.2 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.2967, allocations: 8.156 kB / 415.2 MB, free: 20.25 MB / 298.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,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.0001067/0.2969, allocations: 145.7 kB / 415.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.854e-05/0.2969, allocations: 69.41 kB / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/0.297, allocations: 25.7 kB / 415.4 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.297, allocations: 4 kB / 415.4 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.297, allocations: 0 / 415.4 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.297, allocations: 7.875 kB / 415.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.2972, allocations: 233.6 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2972, allocations: 4 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.466e-05/0.2972, allocations: 11.94 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2972, allocations: 0 / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.2972, allocations: 8 kB / 415.7 MB, free: 19.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2972, allocations: 3.984 kB / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2972, allocations: 0 / 415.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.2975, allocations: 175.2 kB / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.744e-05/0.2975, allocations: 116.8 kB / 416 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.2976, allocations: 8 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.29e-05/0.2976, allocations: 7.984 kB / 416 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.791e-05/0.2977, allocations: 7.938 kB / 416 MB, free: 19.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.2977, allocations: 8.062 kB / 416 MB, free: 19.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000154/0.2979, allocations: 204.4 kB / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2979, allocations: 4 kB / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000239/0.2981, allocations: 35.91 kB / 416.3 MB, free: 19.09 MB / 298.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,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.001265/0.2994, allocations: 1.006 MB / 417.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002251/0.2996, allocations: 75.84 kB / 417.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2996, allocations: 7.938 kB / 417.3 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.421e-05/0.2997, allocations: 27.92 kB / 417.4 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.3002, allocations: 70.16 kB / 417.4 MB, free: 18.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.3017, allocations: 1.064 MB / 418.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.302, allocations: 0.7322 MB / 419.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.281e-05/0.3021, allocations: 55.36 kB / 419.3 MB, free: 16.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3021, allocations: 7.938 kB / 419.3 MB, free: 16.05 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.043/3.345, allocations: 3.175 MB / 422.5 MB, free: 12.87 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.isCsvExt,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_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.timeScaled,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.n,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time