Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008903/0.0008903, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009973/0.0009973, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.898/0.898, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.677e-05/1.824e-05, allocations: 3.125 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002308/0.002327, allocations: 1.908 MB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.003615, allocations: 1.234 MB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.883e-05/0.003703, allocations: 0 / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00026/0.003963, allocations: 75.53 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002627/0.004226, allocations: 143.3 kB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.004617, allocations: 225.6 kB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.004794, allocations: 191.4 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.258e-05/0.004887, allocations: 25.78 kB / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.004997, allocations: 107.7 kB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.98e-05/0.005087, allocations: 75.78 kB / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.005104, allocations: 8 kB / 328.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.005216, allocations: 71.89 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.005282, allocations: 55.81 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.081e-05/0.005333, allocations: 43.8 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.005578, allocations: 251.1 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.005581, allocations: 8 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005582, allocations: 0 / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.005586, allocations: 0 / 328.9 MB, free: 11.5 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.0004978/0.006084, allocations: 482.4 kB / 329.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.006118, allocations: 15.98 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.687e-05/0.006145, allocations: 34.75 kB / 329.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.129e-05/0.006186, allocations: 28.75 kB / 329.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.006448, allocations: 236.7 kB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.006461, allocations: 12.38 kB / 329.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.006472, allocations: 4.375 kB / 329.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002644/0.006736, allocations: 190.4 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.006744, allocations: 192 / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.006754, allocations: 4.125 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.006758, allocations: 0 / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.756e-05/0.006836, allocations: 47.91 kB / 329.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003912/0.007227, allocations: 433.7 kB / 330.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.007393, allocations: 146.5 kB / 330.5 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.052e-05/0.007453, allocations: 55.42 kB / 330.6 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.007474, allocations: 7.922 kB / 330.6 MB, free: 9.633 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001416/0.007616, allocations: 109 kB / 330.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.007617, allocations: 3.938 kB / 330.7 MB, free: 9.504 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002893/0.007907, allocations: 181.4 kB / 330.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/0.007977, allocations: 162.2 kB / 331 MB, free: 9.125 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.008216, allocations: 344.2 kB / 331.3 MB, free: 8.781 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.008231, allocations: 25.7 kB / 331.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.445e-05/0.008295, allocations: 132.4 kB / 331.5 MB, free: 8.613 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.008314, allocations: 19.84 kB / 331.5 MB, free: 8.594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.008349, allocations: 29.7 kB / 331.6 MB, free: 8.559 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.151e-05/0.008431, allocations: 334.8 kB / 331.9 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.983e-05/0.008471, allocations: 24.36 kB / 331.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.759e-05/0.008538, allocations: 119.7 kB / 332 MB, free: 8.055 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.521e-05/0.008624, allocations: 78.42 kB / 332.1 MB, free: 7.969 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.008625, allocations: 0 / 332.1 MB, free: 7.969 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001262/0.008752, allocations: 117.5 kB / 332.2 MB, free: 7.848 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.008762, allocations: 4 kB / 332.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.008766, allocations: 0 / 332.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.008776, allocations: 0 / 332.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.733e-05/0.008843, allocations: 16.08 kB / 332.2 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.008849, allocations: 8 kB / 332.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.879e-05/0.008887, allocations: 7.938 kB / 332.2 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.008894, allocations: 4 kB / 332.2 MB, free: 7.809 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.066e-05/0.008985, allocations: 157.7 kB / 332.4 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.335e-05/0.009038, allocations: 73.52 kB / 332.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.009203, allocations: 131.5 kB / 332.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.009208, allocations: 4 kB / 332.6 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.009211, allocations: 0 / 332.6 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.009217, allocations: 8.047 kB / 332.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.009353, allocations: 204.9 kB / 332.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.009354, allocations: 0 / 332.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.92e-05/0.009394, allocations: 19.94 kB / 332.8 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.009396, allocations: 4 kB / 332.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.009407, allocations: 7.984 kB / 332.8 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.00941, allocations: 4 kB / 332.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.00941, allocations: 0 / 332.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.009564, allocations: 187.4 kB / 333 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.281e-05/0.009617, allocations: 47.72 kB / 333.1 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.009635, allocations: 8.188 kB / 333.1 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.36e-05/0.009669, allocations: 8 kB / 333.1 MB, free: 6.859 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.654e-05/0.009705, allocations: 11.92 kB / 333.1 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.009718, allocations: 7.984 kB / 333.1 MB, free: 6.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001521/0.00987, allocations: 251.1 kB / 333.4 MB, free: 6.598 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00987, allocations: 0 / 333.4 MB, free: 6.598 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001696/0.01004, allocations: 35.98 kB / 333.4 MB, free: 6.562 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0009899/0.01103, allocations: 1.066 MB / 334.5 MB, free: 5.609 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001633/0.01119, allocations: 71.91 kB / 334.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.0112, allocations: 0 / 334.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.904e-05/0.01125, allocations: 39.91 kB / 334.6 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.01153, allocations: 71.66 kB / 334.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.01313, allocations: 2.246 MB / 336.9 MB, free: 3.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.409e-05/0.01321, allocations: 140.2 kB / 337 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.514e-05/0.01327, allocations: 29.61 kB / 337.1 MB, free: 2.887 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.136e-05/0.01334, allocations: 64.47 kB / 337.1 MB, free: 2.824 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01334, allocations: 4 kB / 337.1 MB, free: 2.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01551/0.02885, allocations: 6.335 MB / 343.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.735/6.764, allocations: 7.969 kB / 343.5 MB, free: 12.52 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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.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.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,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 [Calling sys.exit(0), Time elapsed: 8.46981598995626]