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.001263/0.001263, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001303/0.001303, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 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 1.417/1.417, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001475/0.001475, allocations: 51.92 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.09885, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003437/0.1023, allocations: 1.911 MB / 419.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1042, allocations: 1.173 MB / 420.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001245/0.1044, allocations: 3.938 kB / 420.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003173/0.1047, allocations: 67.66 kB / 420.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.105, allocations: 95.58 kB / 421 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007571/0.1057, allocations: 265.6 kB / 421.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.106, allocations: 171.6 kB / 421.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.1061, allocations: 21.55 kB / 421.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.1062, allocations: 83.56 kB / 421.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.1063, allocations: 83.67 kB / 421.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.1063, allocations: 8 kB / 421.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.1065, allocations: 71.94 kB / 421.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.296e-05/0.1066, allocations: 51.78 kB / 421.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.65e-05/0.1067, allocations: 83.41 kB / 421.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003587/0.107, allocations: 243 kB / 422.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.107, allocations: 0 / 422.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.598e-06/0.1071, allocations: 3.984 kB / 422.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1071, allocations: 0 / 422.1 MB, free: 8.305 MB / 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.0007623/0.1078, allocations: 0.5464 MB / 422.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1079, allocations: 8.031 kB / 422.6 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.357e-05/0.1079, allocations: 42.73 kB / 422.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.607e-05/0.108, allocations: 24.75 kB / 422.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.1084, allocations: 291.9 kB / 423 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1084, allocations: 4.375 kB / 423 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.1084, allocations: 15.88 kB / 423 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.1088, allocations: 170.8 kB / 423.2 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.1088, allocations: 0 / 423.2 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.1088, allocations: 11.98 kB / 423.2 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1088, allocations: 3.984 kB / 423.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.109, allocations: 39.92 kB / 423.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.1096, allocations: 478.4 kB / 423.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.1098, allocations: 134.5 kB / 423.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.1099, allocations: 59.34 kB / 423.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.11, allocations: 4 kB / 423.9 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002072/0.1102, allocations: 105 kB / 424 MB, free: 6.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.1102, allocations: 0 / 424 MB, free: 6.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004127/0.1106, allocations: 173.4 kB / 424.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.1107, allocations: 183.9 kB / 424.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.1111, allocations: 334.6 kB / 424.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.1111, allocations: 34.06 kB / 424.7 MB, free: 5.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.996e-05/0.1112, allocations: 128.4 kB / 424.8 MB, free: 5.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.793e-05/0.1112, allocations: 19.84 kB / 424.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.626e-05/0.1113, allocations: 37.66 kB / 424.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1114, allocations: 334.8 kB / 425.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.151e-05/0.1115, allocations: 35.92 kB / 425.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1117, allocations: 95.7 kB / 425.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.1118, allocations: 93.33 kB / 425.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1118, allocations: 8 kB / 425.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002642/0.1121, allocations: 137.4 kB / 425.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1121, allocations: 4 kB / 425.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1121, allocations: 4 kB / 425.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1121, allocations: 0 / 425.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.1123, allocations: 27.92 kB / 425.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1123, allocations: 0 / 425.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.409e-05/0.1123, allocations: 12.09 kB / 425.6 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.1124, allocations: 12 kB / 425.6 MB, free: 4.359 MB / 350.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.0001597/0.1125, allocations: 158.9 kB / 425.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.426e-05/0.1126, allocations: 65.56 kB / 425.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.807e-05/0.1127, allocations: 29.7 kB / 425.9 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.1127, allocations: 4 kB / 425.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1127, allocations: 0 / 425.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1127, allocations: 3.938 kB / 425.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002522/0.1129, allocations: 253.5 kB / 426.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1129, allocations: 0 / 426.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.422e-05/0.113, allocations: 23.86 kB / 426.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.113, allocations: 0 / 426.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.113, allocations: 8 kB / 426.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.113, allocations: 0 / 426.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.113, allocations: 4 kB / 426.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002941/0.1133, allocations: 183.4 kB / 426.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.1135, allocations: 112.9 kB / 426.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.1135, allocations: 8 kB / 426.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.776e-05/0.1136, allocations: 8.047 kB / 426.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.378e-05/0.1136, allocations: 19.88 kB / 426.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.1136, allocations: 7.984 kB / 426.5 MB, free: 3.375 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000247/0.1139, allocations: 241.9 kB / 426.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1139, allocations: 4 kB / 426.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002759/0.1142, allocations: 35.94 kB / 426.8 MB, free: 3.098 MB / 350.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.001956/0.1161, allocations: 1.032 MB / 427.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002638/0.1164, allocations: 83.83 kB / 427.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1164, allocations: 0 / 427.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.684e-05/0.1165, allocations: 36.05 kB / 427.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.1169, allocations: 79.38 kB / 428 MB, free: 2.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.1196, allocations: 2.258 MB / 430.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.12, allocations: 0.7476 MB / 431 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.1201, allocations: 29.52 kB / 431 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.738e-05/0.1202, allocations: 55.42 kB / 431.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1202, allocations: 0 / 431.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.1493, allocations: 5.428 MB / 436.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.446/8.595, allocations: 5.609 kB / 436.5 MB, free: 9.418 MB / 366.1 MB " [Timeout remaining time 651] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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] Reference file matches [Calling sys.exit(0), Time elapsed: 11.404311987105757]