Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009682/0.0009682, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.854/0.854, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.59e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002619/0.002645, allocations: 1.86 MB / 320.3 MB, free: 4.473 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.004171, allocations: 1.102 MB / 321.4 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.00431, allocations: 7.938 kB / 321.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.004644, allocations: 63.61 kB / 321.5 MB, free: 3.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.004885, allocations: 95.53 kB / 321.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005212/0.005406, allocations: 269.9 kB / 321.8 MB, free: 2.938 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.005596, allocations: 179.5 kB / 322 MB, free: 2.762 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.005697, allocations: 25.78 kB / 322 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.005805, allocations: 103.7 kB / 322.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.565e-05/0.005901, allocations: 71.8 kB / 322.2 MB, free: 2.562 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.005922, allocations: 8 kB / 322.2 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.00605, allocations: 71.88 kB / 322.3 MB, free: 2.484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.027e-05/0.00612, allocations: 59.77 kB / 322.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.689e-05/0.006177, allocations: 43.84 kB / 322.4 MB, free: 2.383 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003367/0.006514, allocations: 247.1 kB / 322.6 MB, free: 2.141 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.006518, allocations: 4 kB / 322.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.006521, allocations: 0 / 322.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.006525, allocations: 0 / 322.6 MB, free: 2.137 MB / 282.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.0005466/0.007072, allocations: 478.5 kB / 323.1 MB, free: 1.633 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.00711, allocations: 8.922 kB / 323.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.445e-05/0.007144, allocations: 38.75 kB / 323.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.214e-05/0.007187, allocations: 20.8 kB / 323.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.007481, allocations: 232.7 kB / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.007497, allocations: 12.31 kB / 323.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.007508, allocations: 4.375 kB / 323.4 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.0078, allocations: 197.5 kB / 323.6 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.00781, allocations: 4 kB / 323.6 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.007819, allocations: 0 / 323.6 MB, free: 1.055 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.007824, allocations: 4 kB / 323.6 MB, free: 1.051 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.23e-05/0.007906, allocations: 47.91 kB / 323.6 MB, free: 1.004 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004198/0.008326, allocations: 425.7 kB / 324.1 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.008503, allocations: 142.5 kB / 324.2 MB, free: 368 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.7e-05/0.00857, allocations: 59.34 kB / 324.3 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.008594, allocations: 4 kB / 324.3 MB, free: 292 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.008748, allocations: 97.09 kB / 324.4 MB, free: 176 kB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.00875, allocations: 0 / 324.4 MB, free: 176 kB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003006/0.00905, allocations: 181.4 kB / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.096e-05/0.009141, allocations: 170.1 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.009394, allocations: 325.9 kB / 325 MB, free: 15.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.009409, allocations: 29.7 kB / 325 MB, free: 15.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.513e-05/0.009474, allocations: 124.4 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.009498, allocations: 24.16 kB / 325.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.734e-05/0.009535, allocations: 33.72 kB / 325.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/0.009618, allocations: 334.8 kB / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.478e-05/0.009663, allocations: 23.98 kB / 325.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.257e-05/0.009735, allocations: 115.7 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.543e-05/0.009821, allocations: 74.48 kB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.009823, allocations: 0 / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001274/0.00995, allocations: 117.7 kB / 325.9 MB, free: 14.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.009963, allocations: 8.094 kB / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.009969, allocations: 64 / 325.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.01013, allocations: 8 kB / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.332e-05/0.0102, allocations: 15.98 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.01021, allocations: 0 / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.206e-05/0.01025, allocations: 8 kB / 325.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.01026, allocations: 7.984 kB / 325.9 MB, free: 14.48 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.578e-05/0.01035, allocations: 154.3 kB / 326.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.01042, allocations: 69.56 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001706/0.01059, allocations: 135.5 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.01059, allocations: 4 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.0106, allocations: 3.938 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.0106, allocations: 3.984 kB / 326.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.01074, allocations: 208.5 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01074, allocations: 4 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.01079, allocations: 12 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.01079, allocations: 0 / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.0108, allocations: 11.98 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.0108, allocations: 3.938 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.0108, allocations: 11.94 kB / 326.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.01097, allocations: 179.5 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.234e-05/0.01103, allocations: 39.83 kB / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.01105, allocations: 4 kB / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.194e-05/0.01109, allocations: 4 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.01113, allocations: 11.98 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.01115, allocations: 8 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001482/0.0113, allocations: 245.2 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0113, allocations: 0 / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001796/0.01148, allocations: 31.94 kB / 327 MB, free: 13.27 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.001033/0.01251, allocations: 1.082 MB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001579/0.01267, allocations: 79.78 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01267, allocations: 4 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.263e-05/0.01272, allocations: 31.98 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.01302, allocations: 79.72 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.01469, allocations: 2.211 MB / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.874e-05/0.01477, allocations: 127.9 kB / 330.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.026e-05/0.01484, allocations: 33.61 kB / 330.7 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.109e-05/0.01493, allocations: 60.48 kB / 330.7 MB, free: 9.59 MB / 298.7 MB Notification: Performance of SimCode: time 9.31e-07/0.01493, allocations: 0 / 330.7 MB, free: 9.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01949/0.03442, allocations: 6.246 MB / 337 MB, free: 3.414 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.13/7.165, allocations: 7 kB / 337 MB, free: 3.41 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.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.832287251017988]