Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",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.001505/0.001505, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.002013/0.002013, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.365/1.365, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 46.45 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09849, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004494/0.103, allocations: 1.868 MB / 352 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002416/0.1055, allocations: 1.138 MB / 353.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002559/0.1058, allocations: 4 kB / 353.2 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004573/0.1063, allocations: 59.67 kB / 353.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003664/0.1067, allocations: 95.58 kB / 353.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009153/0.1076, allocations: 261.5 kB / 353.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003051/0.1079, allocations: 167.5 kB / 353.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.1081, allocations: 33.53 kB / 353.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.1082, allocations: 71.64 kB / 353.8 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.1084, allocations: 83.67 kB / 353.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.412e-05/0.1084, allocations: 8 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.1086, allocations: 63.97 kB / 354 MB, free: 492 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.1088, allocations: 51.83 kB / 354 MB, free: 440 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.1089, allocations: 75.42 kB / 354.1 MB, free: 364 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004748/0.1094, allocations: 235.5 kB / 354.4 MB, free: 128 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1094, allocations: 0 / 354.4 MB, free: 128 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1094, allocations: 0 / 354.4 MB, free: 128 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1094, allocations: 0 / 354.4 MB, free: 128 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001024/0.1104, allocations: 0.5314 MB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1105, allocations: 12.03 kB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.189e-05/0.1105, allocations: 38.69 kB / 354.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.335e-05/0.1106, allocations: 28.64 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004001/0.111, allocations: 283.5 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.1111, allocations: 4.375 kB / 355.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.1111, allocations: 7.938 kB / 355.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.1115, allocations: 159.6 kB / 355.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1115, allocations: 4 kB / 355.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.1115, allocations: 4 kB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1115, allocations: 0 / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.1116, allocations: 39.91 kB / 355.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005898/0.1122, allocations: 390.3 kB / 355.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002823/0.1125, allocations: 115.9 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.891e-05/0.1126, allocations: 42.56 kB / 356 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.1127, allocations: 7.984 kB / 356 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000252/0.1129, allocations: 71.39 kB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 5.04e-06/0.113, allocations: 4 kB / 356.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004247/0.1134, allocations: 157.2 kB / 356.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.44e-05/0.1135, allocations: 162.2 kB / 356.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003566/0.1139, allocations: 326.6 kB / 356.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.1139, allocations: 33.7 kB / 356.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.114, allocations: 124.1 kB / 356.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.114, allocations: 16.06 kB / 356.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.667e-05/0.1141, allocations: 37.7 kB / 356.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1142, allocations: 326.8 kB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.204e-05/0.1143, allocations: 27.92 kB / 357.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.1144, allocations: 90.78 kB / 357.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.1146, allocations: 84.22 kB / 357.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1146, allocations: 0 / 357.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002654/0.1149, allocations: 117.3 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1149, allocations: 16.11 kB / 357.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1149, allocations: 0 / 357.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1149, allocations: 7.938 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1151, allocations: 12.31 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.1151, allocations: 4 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.764e-05/0.1152, allocations: 19.92 kB / 357.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.1152, allocations: 4 kB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001465/0.1153, allocations: 157.7 kB / 357.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-05/0.1154, allocations: 69.41 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.852e-05/0.1155, allocations: 25.7 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1155, allocations: 4 kB / 357.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1155, allocations: 0 / 357.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1155, allocations: 3.938 kB / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.1157, allocations: 237.5 kB / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1158, allocations: 0 / 358.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-05/0.1158, allocations: 19.92 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.1159, allocations: 4.031 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1159, allocations: 0 / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1159, allocations: 8.062 kB / 358.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.1159, allocations: 0 / 358.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.1162, allocations: 166.4 kB / 358.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1163, allocations: 116.8 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.1163, allocations: 4 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.466e-05/0.1164, allocations: 4 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.861e-05/0.1165, allocations: 15.92 kB / 358.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.1165, allocations: 8 kB / 358.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.1167, allocations: 241.9 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1167, allocations: 0 / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002746/0.117, allocations: 35.98 kB / 358.7 MB, free: 11.31 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (9): * Single equations (assignments): 7 * 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.001574/0.1186, allocations: 1.021 MB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002419/0.1189, allocations: 75.84 kB / 359.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1189, allocations: 0 / 359.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.378e-05/0.119, allocations: 27.98 kB / 359.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.1194, allocations: 86.22 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.1222, allocations: 2.181 MB / 362.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1226, allocations: 0.7514 MB / 362.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.695e-05/0.1227, allocations: 25.53 kB / 362.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.601e-05/0.1228, allocations: 55.42 kB / 362.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1228, allocations: 0 / 362.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05346/0.1762, allocations: 5.179 MB / 368.1 MB, free: 2.035 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.204, allocations: 0 / 368.1 MB, free: 2.035 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches