Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00158/0.001586, allocations: 174.2 kB / 16.8 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 223 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007572/0.0007572, allocations: 85.48 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07167/0.07167, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005555/0.0005556, allocations: 12 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1059, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002527/0.1085, allocations: 1.575 MB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.1104, allocations: 1.022 MB / 446.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1105, allocations: 4 kB / 446.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.1108, allocations: 59.8 kB / 446.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.1111, allocations: 87.7 kB / 446.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007955/0.1119, allocations: 203.6 kB / 446.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.1122, allocations: 159.6 kB / 446.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1123, allocations: 21.56 kB / 446.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.1124, allocations: 67.62 kB / 446.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.1126, allocations: 71.69 kB / 447 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.1126, allocations: 4 kB / 447 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.1128, allocations: 51.91 kB / 447 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-05/0.1129, allocations: 47.83 kB / 447.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.543e-05/0.113, allocations: 97.12 kB / 447.2 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.1132, allocations: 167.9 kB / 447.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1133, allocations: 4 kB / 447.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1133, allocations: 0 / 447.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.1133, allocations: 0 / 447.3 MB, free: 11.77 MB / 298.7 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.0006919/0.114, allocations: 0.4962 MB / 447.8 MB, free: 11.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.114, allocations: 12.03 kB / 447.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.471e-05/0.1141, allocations: 20.66 kB / 447.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.1145, allocations: 283.6 kB / 448.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.1145, allocations: 8.375 kB / 448.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.1145, allocations: 12.12 kB / 448.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003749/0.1149, allocations: 159.5 kB / 448.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.115, allocations: 0 / 448.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.115, allocations: 4 kB / 448.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.115, allocations: 3.984 kB / 448.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.1152, allocations: 39.97 kB / 448.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005617/0.1157, allocations: 386.2 kB / 448.7 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.116, allocations: 119.9 kB / 448.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.1162, allocations: 46.56 kB / 448.9 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.1162, allocations: 4 kB / 448.9 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.1164, allocations: 83.31 kB / 449 MB, free: 9.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.064e-06/0.1165, allocations: 3.938 kB / 449 MB, free: 9.887 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004623/0.1169, allocations: 149.4 kB / 449.1 MB, free: 9.734 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.947e-05/0.117, allocations: 166.3 kB / 449.3 MB, free: 9.535 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003881/0.1174, allocations: 334.6 kB / 449.6 MB, free: 9.199 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1174, allocations: 25.7 kB / 449.6 MB, free: 9.168 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.1175, allocations: 128.1 kB / 449.8 MB, free: 9.039 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.1176, allocations: 15.81 kB / 449.8 MB, free: 9.023 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-06/0.1176, allocations: 4 kB / 449.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.1177, allocations: 338.8 kB / 450.1 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.239e-05/0.1178, allocations: 23.98 kB / 450.1 MB, free: 8.656 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.1179, allocations: 82.86 kB / 450.2 MB, free: 8.551 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.1181, allocations: 84.22 kB / 450.3 MB, free: 8.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1181, allocations: 4 kB / 450.3 MB, free: 8.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002934/0.1184, allocations: 121.3 kB / 450.4 MB, free: 8.324 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.1185, allocations: 8 kB / 450.4 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.1185, allocations: 0 / 450.4 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.1185, allocations: 0 / 450.4 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.1187, allocations: 19.98 kB / 450.4 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.1187, allocations: 0 / 450.4 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.1188, allocations: 23.91 kB / 450.5 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.1188, allocations: 11.94 kB / 450.5 MB, free: 8.262 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.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.0001439/0.119, allocations: 142.7 kB / 450.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.55e-05/0.1191, allocations: 69.34 kB / 450.7 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.684e-05/0.1192, allocations: 29.7 kB / 450.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1192, allocations: 0 / 450.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.1192, allocations: 4 kB / 450.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1192, allocations: 7.875 kB / 450.7 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.1194, allocations: 241.7 kB / 451 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1195, allocations: 0 / 451 MB, free: 7.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.842e-05/0.1196, allocations: 11.98 kB / 451 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1196, allocations: 4.312 kB / 451 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.1196, allocations: 0 / 451 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1196, allocations: 4 kB / 451 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1196, allocations: 4 kB / 451 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.1199, allocations: 170.4 kB / 451.2 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.995e-05/0.12, allocations: 108.9 kB / 451.3 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.1201, allocations: 8 kB / 451.3 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.1202, allocations: 7.984 kB / 451.3 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.02e-05/0.1203, allocations: 8.094 kB / 451.3 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-05/0.1203, allocations: 15.86 kB / 451.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002731/0.1206, allocations: 237.9 kB / 451.5 MB, free: 7.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.1206, allocations: 0 / 451.5 MB, free: 7.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004185/0.1211, allocations: 39.91 kB / 451.6 MB, free: 7.062 MB / 298.7 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,sample.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.001272/0.1223, allocations: 421.7 kB / 452 MB, free: 6.641 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002694/0.1226, allocations: 71.91 kB / 452.1 MB, free: 6.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1226, allocations: 3.938 kB / 452.1 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.1228, allocations: 27.98 kB / 452.1 MB, free: 6.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005748/0.1233, allocations: 72.83 kB / 452.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007272/0.1241, allocations: 446 kB / 452.6 MB, free: 6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.1243, allocations: 0.7361 MB / 453.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.615e-05/0.1244, allocations: 27.44 kB / 453.4 MB, free: 5.215 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1244, allocations: 0 / 453.4 MB, free: 5.215 MB / 298.7 MB Notification: Performance of Templates: time 0.00578/0.1302, allocations: 2.87 MB / 456.2 MB, free: 2.34 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches