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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002035/0.002035, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 59.78 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09567, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003445/0.09915, allocations: 1.914 MB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.1013, allocations: 1.301 MB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.1014, allocations: 3.938 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.1018, allocations: 71.66 kB / 360.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000384/0.1022, allocations: 131.4 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007081/0.1029, allocations: 226.8 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.1031, allocations: 191.5 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.1033, allocations: 37.52 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.1034, allocations: 75.7 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.1036, allocations: 87.55 kB / 361.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.884e-05/0.1036, allocations: 12 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001569/0.1038, allocations: 63.97 kB / 361.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.583e-05/0.1039, allocations: 51.83 kB / 361.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.738e-05/0.1039, allocations: 79.42 kB / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003279/0.1043, allocations: 255.4 kB / 362.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1043, allocations: 0 / 362.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1043, allocations: 0 / 362.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1043, allocations: 0 / 362.1 MB, free: 9.523 MB / 302.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.0007017/0.105, allocations: 0.5428 MB / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1051, allocations: 8.031 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.043e-05/0.1051, allocations: 46.75 kB / 362.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.746e-05/0.1052, allocations: 24.66 kB / 362.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.1055, allocations: 283.6 kB / 362.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.1055, allocations: 8.375 kB / 363 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.1056, allocations: 11.92 kB / 363 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.1059, allocations: 176.3 kB / 363.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1059, allocations: 0 / 363.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.106, allocations: 8 kB / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.106, allocations: 3.938 kB / 363.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.1061, allocations: 35.97 kB / 363.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.1067, allocations: 486.4 kB / 363.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002583/0.1069, allocations: 142.5 kB / 363.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.696e-05/0.1071, allocations: 59.36 kB / 363.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.1071, allocations: 7.984 kB / 363.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.1073, allocations: 93.09 kB / 364 MB, free: 7.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.1073, allocations: 3.938 kB / 364 MB, free: 7.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004168/0.1078, allocations: 165.3 kB / 364.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.007e-05/0.1079, allocations: 192.2 kB / 364.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.1082, allocations: 346.8 kB / 364.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.1082, allocations: 25.7 kB / 364.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.628e-05/0.1083, allocations: 132.4 kB / 364.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.1083, allocations: 19.75 kB / 364.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.493e-05/0.1084, allocations: 33.7 kB / 364.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1085, allocations: 330.8 kB / 365.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.534e-05/0.1086, allocations: 27.98 kB / 365.2 MB, free: 6.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.1087, allocations: 99.7 kB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.1089, allocations: 101 kB / 365.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1089, allocations: 0 / 365.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002526/0.1092, allocations: 137.2 kB / 365.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1092, allocations: 10.97 kB / 365.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1092, allocations: 4.297 kB / 365.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1092, allocations: 4 kB / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.1093, allocations: 28.14 kB / 365.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.1094, allocations: 8 kB / 365.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.238e-05/0.1094, allocations: 11.84 kB / 365.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.1095, allocations: 4 kB / 365.6 MB, free: 5.566 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.0001446/0.1096, allocations: 166.8 kB / 365.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.281e-05/0.1097, allocations: 73.36 kB / 365.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.688e-05/0.1098, allocations: 29.73 kB / 365.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1098, allocations: 8 kB / 365.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1098, allocations: 4 kB / 365.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.1098, allocations: 7.969 kB / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.11, allocations: 245.6 kB / 366.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.11, allocations: 4 kB / 366.1 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.393e-05/0.1101, allocations: 15.98 kB / 366.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1101, allocations: 0 / 366.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.1101, allocations: 8 kB / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.1101, allocations: 3.984 kB / 366.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1102, allocations: 0 / 366.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.1105, allocations: 187.3 kB / 366.3 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.621e-05/0.1106, allocations: 108.8 kB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.1106, allocations: 15.92 kB / 366.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.805e-05/0.1107, allocations: 0 / 366.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.1108, allocations: 19.92 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.1108, allocations: 11.94 kB / 366.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.111, allocations: 253.9 kB / 366.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.111, allocations: 0 / 366.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.1113, allocations: 36 kB / 366.8 MB, free: 4.277 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.001476/0.1128, allocations: 1.029 MB / 367.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002457/0.1131, allocations: 83.83 kB / 367.9 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1131, allocations: 4 kB / 367.9 MB, free: 3.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.427e-05/0.1132, allocations: 32.36 kB / 367.9 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.1136, allocations: 81.97 kB / 368 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1161, allocations: 2.286 MB / 370.3 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1536/0.2697, allocations: 0.7398 MB / 371 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.27, allocations: 25.84 kB / 371.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.2701, allocations: 66.02 kB / 371.1 MB, free: 19.63 MB / 302.1 MB Notification: Performance of SimCode: time 1.302e-06/0.2701, allocations: 3.562 kB / 371.1 MB, free: 19.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.2978, allocations: 5.374 MB / 376.5 MB, free: 19.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/7.895, allocations: 12.17 kB / 376.5 MB, free: 19.03 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.csv","/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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches