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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 48.14 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1021, allocations: 49.44 MB / 350.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003175/0.1053, allocations: 1.895 MB / 352.1 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.107, allocations: 1.153 MB / 353.2 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.1071, allocations: 3.938 kB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002769/0.1074, allocations: 63.67 kB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.1077, allocations: 91.59 kB / 353.4 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006963/0.1084, allocations: 267.6 kB / 353.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002139/0.1086, allocations: 175.5 kB / 353.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.1088, allocations: 29.55 kB / 353.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.1089, allocations: 79.62 kB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.109, allocations: 75.69 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.109, allocations: 12 kB / 354 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.1092, allocations: 55.97 kB / 354 MB, free: 396 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-05/0.1092, allocations: 63.75 kB / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.812e-05/0.1093, allocations: 79.42 kB / 354.2 MB, free: 252 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002784/0.1096, allocations: 239.5 kB / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1096, allocations: 0 / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1096, allocations: 0 / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1096, allocations: 0 / 354.4 MB, free: 12 kB / 286.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.0006407/0.1103, allocations: 0.5428 MB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1103, allocations: 11.89 kB / 355 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.708e-05/0.1104, allocations: 42.75 kB / 355 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.665e-05/0.1104, allocations: 32.56 kB / 355 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000281/0.1107, allocations: 275.6 kB / 355.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.1107, allocations: 8.375 kB / 355.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.1108, allocations: 15.94 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.1111, allocations: 183.4 kB / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1111, allocations: 0 / 355.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.1111, allocations: 4 kB / 355.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.1111, allocations: 7.984 kB / 355.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.1113, allocations: 35.92 kB / 355.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.1117, allocations: 474.6 kB / 356 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/0.112, allocations: 138.5 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.271e-05/0.1121, allocations: 59.41 kB / 356.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.1121, allocations: 4 kB / 356.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.1123, allocations: 101 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.1123, allocations: 0 / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.000381/0.1127, allocations: 169.2 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.1128, allocations: 183.9 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.1131, allocations: 346.8 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.1131, allocations: 33.64 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/0.1132, allocations: 128.4 kB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.1132, allocations: 19.75 kB / 357.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.1133, allocations: 33.7 kB / 357.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.1134, allocations: 330.8 kB / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.921e-05/0.1135, allocations: 27.98 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.1136, allocations: 99.64 kB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.1137, allocations: 97.08 kB / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1138, allocations: 0 / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002237/0.114, allocations: 137.2 kB / 357.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.114, allocations: 8 kB / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.114, allocations: 0 / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.114, allocations: 0 / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1141, allocations: 28.23 kB / 357.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.1142, allocations: 160 / 357.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.664e-05/0.1142, allocations: 23.84 kB / 358 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1143, allocations: 8 kB / 358 MB, free: 12.07 MB / 302.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.0001173/0.1144, allocations: 158.3 kB / 358.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.643e-05/0.1145, allocations: 65.45 kB / 358.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.1145, allocations: 25.7 kB / 358.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1145, allocations: 4 kB / 358.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1145, allocations: 0 / 358.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1146, allocations: 8 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.1147, allocations: 253.5 kB / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1148, allocations: 0 / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.582e-05/0.1148, allocations: 15.98 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1148, allocations: 0 / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.1149, allocations: 8 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1149, allocations: 3.938 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.1149, allocations: 4 kB / 358.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.1151, allocations: 183.3 kB / 358.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.403e-05/0.1152, allocations: 112.9 kB / 358.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.1152, allocations: 4 kB / 358.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.551e-05/0.1153, allocations: 7.984 kB / 358.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.1154, allocations: 15.88 kB / 358.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1154, allocations: 7.984 kB / 358.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001924/0.1156, allocations: 245.9 kB / 359.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1156, allocations: 0 / 359.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.1158, allocations: 35.91 kB / 359.1 MB, free: 10.83 MB / 302.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.001221/0.1171, allocations: 1.036 MB / 360.1 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002133/0.1173, allocations: 91.83 kB / 360.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1173, allocations: 0 / 360.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.469e-05/0.1174, allocations: 39.92 kB / 360.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.1178, allocations: 80.84 kB / 360.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.1199, allocations: 2.265 MB / 362.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.1201, allocations: 0.7437 MB / 363.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8e-05/0.1202, allocations: 25.53 kB / 363.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.622e-05/0.1203, allocations: 67.41 kB / 363.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1203, allocations: 0 / 363.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1706/0.2909, allocations: 5.291 MB / 368.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.11/8.401, allocations: 3.984 kB / 368.7 MB, free: 1.273 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches