Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001698/0.001698, allocations: 192.8 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008554/0.0008554, allocations: 101.7 kB / 296.7 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.0002352, allocations: 7.938 kB / 356.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3252, allocations: 51.29 MB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002435/0.3277, allocations: 1.601 MB / 409.7 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.3297, allocations: 1.19 MB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.3298, allocations: 7.938 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004257/0.3302, allocations: 60.72 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003673/0.3306, allocations: 105.5 kB / 411.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008238/0.3314, allocations: 220 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.3316, allocations: 163.5 kB / 411.5 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.3318, allocations: 39.62 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.461e-05/0.3319, allocations: 63.69 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.3321, allocations: 71.62 kB / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.123e-05/0.3322, allocations: 5.375 kB / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.3323, allocations: 51.92 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.3324, allocations: 43.83 kB / 411.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.3326, allocations: 97.17 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001894/0.3328, allocations: 182.1 kB / 412 MB, free: 23.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3328, allocations: 0 / 412 MB, free: 23.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3328, allocations: 4 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.3328, allocations: 1.594 kB / 412 MB, free: 23.75 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.000852/0.3336, allocations: 0.504 MB / 412.5 MB, free: 23.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3337, allocations: 12.81 kB / 412.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.743e-05/0.3338, allocations: 38.73 kB / 412.6 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.3339, allocations: 27.97 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.3343, allocations: 287.5 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.3343, allocations: 8.375 kB / 412.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.3343, allocations: 7.938 kB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004136/0.3348, allocations: 173.3 kB / 413.1 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3348, allocations: 7.875 kB / 413.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.3348, allocations: 11.98 kB / 413.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.577e-06/0.3348, allocations: 0 / 413.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/0.3349, allocations: 39.91 kB / 413.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006955/0.3356, allocations: 482.5 kB / 413.6 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.3359, allocations: 146.5 kB / 413.7 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.072e-05/0.3361, allocations: 55.42 kB / 413.8 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.3361, allocations: 0 / 413.8 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001763/0.3363, allocations: 97.03 kB / 413.9 MB, free: 21.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.3363, allocations: 0 / 413.9 MB, free: 21.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004461/0.3367, allocations: 165.5 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.3369, allocations: 192.2 kB / 414.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.3372, allocations: 346.9 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.3373, allocations: 25.7 kB / 414.6 MB, free: 20.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.3374, allocations: 132.4 kB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.3374, allocations: 23.81 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-06/0.3374, allocations: 0 / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.681e-05/0.3375, allocations: 334.8 kB / 415.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.489e-05/0.3376, allocations: 27.98 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.3378, allocations: 99.08 kB / 415.2 MB, free: 20.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.3379, allocations: 97.08 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3379, allocations: 4 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002383/0.3382, allocations: 141.2 kB / 415.4 MB, free: 19.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.3382, allocations: 4 kB / 415.4 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.3383, allocations: 4 kB / 415.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.3383, allocations: 0 / 415.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.3384, allocations: 24.08 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3384, allocations: 8 kB / 415.5 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.845e-05/0.3385, allocations: 11.84 kB / 415.5 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.3385, allocations: 11.88 kB / 415.5 MB, free: 19.88 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.0002474/0.3388, allocations: 157.8 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.347e-05/0.3388, allocations: 73.41 kB / 415.7 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.3389, allocations: 33.72 kB / 415.8 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3389, allocations: 4 kB / 415.8 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3389, allocations: 4.062 kB / 415.8 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3389, allocations: 7.922 kB / 415.8 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.3392, allocations: 237.6 kB / 416 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3392, allocations: 0 / 416 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.722e-05/0.3393, allocations: 19.98 kB / 416 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3393, allocations: 4 kB / 416 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.528e-05/0.3393, allocations: 0 / 416 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.414e-05/0.3394, allocations: 7.984 kB / 416 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.3394, allocations: 0 / 416 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.3397, allocations: 183.3 kB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.3397, allocations: 124.7 kB / 416.3 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.3398, allocations: 8.062 kB / 416.3 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.3399, allocations: 8 kB / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.34, allocations: 11.92 kB / 416.4 MB, free: 18.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.34, allocations: 12 kB / 416.4 MB, free: 18.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001832/0.3402, allocations: 249.9 kB / 416.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3402, allocations: 0 / 416.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003017/0.3405, allocations: 35.98 kB / 416.7 MB, free: 18.61 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.001529/0.3421, allocations: 1.032 MB / 417.7 MB, free: 17.69 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000279/0.3424, allocations: 83.84 kB / 417.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.3424, allocations: 0 / 417.8 MB, free: 17.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.3426, allocations: 32.3 kB / 417.8 MB, free: 17.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004881/0.3431, allocations: 76.75 kB / 417.9 MB, free: 17.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.3449, allocations: 1.263 MB / 419.1 MB, free: 16.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.3452, allocations: 0.7556 MB / 419.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.36e-05/0.3453, allocations: 55.42 kB / 420 MB, free: 15.32 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3453, allocations: 0 / 420 MB, free: 15.32 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.348/3.693, allocations: 3.598 MB / 423.5 MB, free: 11.72 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,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.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time