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.001252/0.001252, allocations: 114.8 kB / 18.5 MB, free: 4.582 MB / 14.72 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.00131/0.00131, allocations: 206.5 kB / 21.46 MB, free: 1.629 MB / 14.72 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 1.401/1.401, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00181/0.00181, allocations: 67.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.109, allocations: 53.32 MB / 426.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003489/0.1125, allocations: 1.924 MB / 428.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.1148, allocations: 1.312 MB / 429.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.1149, allocations: 7.938 kB / 429.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003296/0.1152, allocations: 67.66 kB / 430 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003666/0.1156, allocations: 135.4 kB / 430.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006166/0.1162, allocations: 238.4 kB / 430.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.1165, allocations: 183.5 kB / 430.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.1166, allocations: 29.48 kB / 430.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.1167, allocations: 75.69 kB / 430.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.1169, allocations: 91.55 kB / 430.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.1169, allocations: 8 kB / 430.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.117, allocations: 71.95 kB / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.701e-05/0.1171, allocations: 55.83 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.648e-05/0.1172, allocations: 83.42 kB / 430.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003639/0.1176, allocations: 254.9 kB / 431.2 MB, free: 500 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1176, allocations: 0 / 431.2 MB, free: 500 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1176, allocations: 0 / 431.2 MB, free: 500 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.1176, allocations: 0 / 431.2 MB, free: 500 kB / 350.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.0008899/0.1185, allocations: 0.5491 MB / 431.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.1185, allocations: 8.031 kB / 431.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.737e-05/0.1186, allocations: 38.75 kB / 431.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.285e-05/0.1186, allocations: 36.67 kB / 431.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.1191, allocations: 295.8 kB / 432.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.1192, allocations: 8.375 kB / 432.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.1192, allocations: 16.3 kB / 432.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003819/0.1196, allocations: 182.5 kB / 432.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1196, allocations: 0 / 432.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.1196, allocations: 0 / 432.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.1196, allocations: 4 kB / 432.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/0.1197, allocations: 39.92 kB / 432.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006721/0.1204, allocations: 478.5 kB / 432.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.1207, allocations: 142.5 kB / 432.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.1208, allocations: 51.42 kB / 433 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.1208, allocations: 4 kB / 433 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000207/0.121, allocations: 101 kB / 433.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.121, allocations: 0 / 433.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004114/0.1214, allocations: 169.4 kB / 433.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.1215, allocations: 187.9 kB / 433.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00037/0.1219, allocations: 343.4 kB / 433.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.1219, allocations: 25.7 kB / 433.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.122, allocations: 136.3 kB / 433.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.1221, allocations: 15.91 kB / 433.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-05/0.1221, allocations: 33.7 kB / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1223, allocations: 342.8 kB / 434.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.257e-05/0.1224, allocations: 23.98 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.1225, allocations: 103.6 kB / 434.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.1227, allocations: 105.1 kB / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1227, allocations: 0 / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002533/0.1229, allocations: 137.4 kB / 434.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1229, allocations: 4 kB / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1229, allocations: 0 / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.123, allocations: 4 kB / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.1231, allocations: 19.98 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.1231, allocations: 12.03 kB / 434.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.138e-05/0.1232, allocations: 20.19 kB / 434.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.1232, allocations: 8 kB / 434.7 MB, free: 12.51 MB / 366.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.0001648/0.1233, allocations: 157.8 kB / 434.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.1234, allocations: 77.48 kB / 435 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.963e-05/0.1235, allocations: 29.73 kB / 435 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1235, allocations: 0 / 435 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1235, allocations: 4 kB / 435 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.1235, allocations: 4.062 kB / 435 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.1238, allocations: 253.6 kB / 435.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1238, allocations: 0 / 435.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.952e-05/0.1238, allocations: 15.98 kB / 435.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1238, allocations: 0 / 435.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.1239, allocations: 4 kB / 435.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1239, allocations: 0 / 435.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.1239, allocations: 11.92 kB / 435.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.1242, allocations: 187.4 kB / 435.5 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.1243, allocations: 120.9 kB / 435.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.1243, allocations: 4 kB / 435.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.954e-05/0.1244, allocations: 11.98 kB / 435.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.398e-05/0.1244, allocations: 4 kB / 435.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.1245, allocations: 7.984 kB / 435.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.1247, allocations: 257.9 kB / 435.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1247, allocations: 0 / 435.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002568/0.125, allocations: 35.98 kB / 435.9 MB, free: 11.24 MB / 366.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.001938/0.1269, allocations: 1.036 MB / 436.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.1272, allocations: 79.84 kB / 437 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1272, allocations: 0 / 437 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.311e-05/0.1272, allocations: 35.92 kB / 437.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.1277, allocations: 81.03 kB / 437.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.1305, allocations: 2.289 MB / 439.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.1309, allocations: 0.7515 MB / 440.2 MB, free: 6.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.385e-05/0.131, allocations: 29.8 kB / 440.2 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.1312, allocations: 63.41 kB / 440.3 MB, free: 6.836 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1312, allocations: 0 / 440.3 MB, free: 6.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.1599, allocations: 5.504 MB / 445.8 MB, free: 1.406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.769/7.929, allocations: 3.984 kB / 445.8 MB, free: 1.402 MB / 366.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.506722916848958]