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.002085/0.002085, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.002621/0.002622, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.537/1.537, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 45.08 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1062, allocations: 49.44 MB / 349.5 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003469/0.1097, allocations: 1.933 MB / 351.4 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.1116, allocations: 1.126 MB / 352.6 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1118, allocations: 7.938 kB / 352.6 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003483/0.1122, allocations: 55.8 kB / 352.6 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002604/0.1124, allocations: 75.73 kB / 352.7 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008337/0.1133, allocations: 233.2 kB / 352.9 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.1135, allocations: 155.5 kB / 353.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.1137, allocations: 29.55 kB / 353.1 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.1138, allocations: 63.64 kB / 353.2 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.1139, allocations: 75.67 kB / 353.2 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.114, allocations: 4 kB / 353.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.1141, allocations: 51.98 kB / 353.3 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.964e-05/0.1142, allocations: 59.75 kB / 353.4 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.628e-05/0.1143, allocations: 67.48 kB / 353.4 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.1146, allocations: 227.5 kB / 353.6 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1146, allocations: 4 kB / 353.6 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1147, allocations: 0 / 353.6 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1147, allocations: 0 / 353.6 MB, free: 384 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.0008086/0.1155, allocations: 0.5273 MB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.1155, allocations: 12.03 kB / 354.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.714e-05/0.1156, allocations: 34.75 kB / 354.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.1157, allocations: 32.66 kB / 354.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.1161, allocations: 279.6 kB / 354.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.1161, allocations: 12.36 kB / 354.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.1161, allocations: 7.938 kB / 354.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003672/0.1165, allocations: 155.6 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.1165, allocations: 0 / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.1165, allocations: 8 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1165, allocations: 3.938 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001211/0.1167, allocations: 35.97 kB / 354.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005592/0.1172, allocations: 386.3 kB / 355.1 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.1175, allocations: 111.9 kB / 355.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.159e-05/0.1176, allocations: 46.56 kB / 355.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.1176, allocations: 7.984 kB / 355.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.1179, allocations: 83.33 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.694e-06/0.1179, allocations: 0 / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.00042/0.1183, allocations: 153.3 kB / 355.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.1184, allocations: 166.4 kB / 355.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.1188, allocations: 334.6 kB / 356 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.1188, allocations: 29.7 kB / 356 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.1189, allocations: 128.1 kB / 356.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.716e-05/0.119, allocations: 15.81 kB / 356.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.219e-05/0.119, allocations: 33.7 kB / 356.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1192, allocations: 326.8 kB / 356.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.1e-05/0.1193, allocations: 27.98 kB / 356.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.1194, allocations: 90.78 kB / 356.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.1195, allocations: 84.22 kB / 356.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1196, allocations: 0 / 356.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002424/0.1198, allocations: 125.5 kB / 356.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1198, allocations: 8 kB / 356.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1198, allocations: 3.984 kB / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1199, allocations: 4 kB / 356.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.12, allocations: 12.12 kB / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.12, allocations: 8 kB / 356.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.3e-05/0.1201, allocations: 15.92 kB / 356.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.1201, allocations: 4 kB / 356.9 MB, free: 12.76 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.0001389/0.1202, allocations: 153.7 kB / 357.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.1204, allocations: 65.41 kB / 357.1 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.722e-05/0.1204, allocations: 29.69 kB / 357.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1204, allocations: 4 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1204, allocations: 4.062 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.1204, allocations: 3.938 kB / 357.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.1207, allocations: 237.5 kB / 357.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1207, allocations: 0 / 357.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.159e-05/0.1207, allocations: 15.92 kB / 357.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.247e-06/0.1208, allocations: 4 kB / 357.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.1208, allocations: 4 kB / 357.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1208, allocations: 4 kB / 357.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1208, allocations: 0 / 357.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.121, allocations: 166.4 kB / 357.6 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.701e-05/0.1211, allocations: 112.9 kB / 357.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.1212, allocations: 11.94 kB / 357.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.678e-05/0.1213, allocations: 4 kB / 357.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.1213, allocations: 11.97 kB / 357.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.1214, allocations: 11.98 kB / 357.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.1216, allocations: 241.9 kB / 358 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1216, allocations: 4 kB / 358 MB, free: 11.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.1219, allocations: 32 kB / 358 MB, free: 11.56 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.001672/0.1236, allocations: 1.027 MB / 359 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002908/0.1239, allocations: 79.84 kB / 359.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1239, allocations: 0 / 359.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.141e-05/0.124, allocations: 27.98 kB / 359.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004597/0.1245, allocations: 64.42 kB / 359.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.1276, allocations: 2.217 MB / 361.4 MB, free: 8.152 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.1279, allocations: 0.74 MB / 362.2 MB, free: 7.387 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.128, allocations: 33.48 kB / 362.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.1281, allocations: 51.42 kB / 362.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1281, allocations: 0 / 362.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.1457, allocations: 4.94 MB / 367.2 MB, free: 2.52 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.1459, allocations: 266.2 kB / 367.4 MB, free: 2.207 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.188/2.334, allocations: 0 / 367.4 MB, free: 2.207 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