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/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 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 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 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 100.6 kB / 16.02 MB, free: 6.305 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.001423/0.001423, allocations: 193.3 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.816/1.816, allocations: 205.1 MB / 222.8 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09581/0.09581, allocations: 12.59 MB / 282.7 MB, free: 15.67 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 95 kB / 343 MB, free: 3.324 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3871, allocations: 49.37 MB / 392.4 MB, free: 49.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004365/0.3915, allocations: 1.942 MB / 394.3 MB, free: 47.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.3937, allocations: 1.04 MB / 395.3 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.3938, allocations: 6.562 kB / 395.3 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000461/0.3943, allocations: 64.62 kB / 395.4 MB, free: 47.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003441/0.3947, allocations: 80.83 kB / 395.5 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008531/0.3955, allocations: 204.9 kB / 395.7 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.3959, allocations: 170.4 kB / 395.9 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.396, allocations: 32.39 kB / 395.9 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.3962, allocations: 76.7 kB / 396 MB, free: 46.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.3963, allocations: 83.34 kB / 396 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.3964, allocations: 7.188 kB / 396 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.3965, allocations: 60.14 kB / 396.1 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.838e-05/0.3966, allocations: 54.55 kB / 396.2 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.602e-05/0.3967, allocations: 76.05 kB / 396.2 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.3971, allocations: 240.3 kB / 396.5 MB, free: 46.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3971, allocations: 1.094 kB / 396.5 MB, free: 46.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3972, allocations: 0 / 396.5 MB, free: 46.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.3972, allocations: 0.9844 kB / 396.5 MB, free: 46.59 MB / 318.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.0007603/0.3979, allocations: 0.5243 MB / 397 MB, free: 46.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.398, allocations: 10.27 kB / 397 MB, free: 46.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.555e-05/0.3981, allocations: 22.94 kB / 397 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.3984, allocations: 291.2 kB / 397.3 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.3985, allocations: 3.375 kB / 397.3 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.3985, allocations: 12.5 kB / 397.3 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003577/0.3989, allocations: 155.5 kB / 397.5 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.3989, allocations: 4 kB / 397.5 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3989, allocations: 1.438 kB / 397.5 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.3989, allocations: 1.562 kB / 397.5 MB, free: 45.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.399, allocations: 37.98 kB / 397.5 MB, free: 45.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.3996, allocations: 389.1 kB / 397.9 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.3999, allocations: 115.4 kB / 398 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.796e-05/0.4, allocations: 51.28 kB / 398.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.4, allocations: 5.188 kB / 398.1 MB, free: 45.1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003109/0.4004, allocations: 73.72 kB / 398.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.4004, allocations: 3.938 kB / 398.1 MB, free: 45.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004713/0.4008, allocations: 151.4 kB / 398.3 MB, free: 44.94 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.637e-05/0.4009, allocations: 168.7 kB / 398.5 MB, free: 44.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.4013, allocations: 326.2 kB / 398.8 MB, free: 44.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.4014, allocations: 26.77 kB / 398.8 MB, free: 44.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.758e-05/0.4015, allocations: 123.2 kB / 398.9 MB, free: 44.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.4015, allocations: 23.36 kB / 398.9 MB, free: 44.38 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-05/0.4016, allocations: 27.94 kB / 399 MB, free: 44.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4017, allocations: 336.2 kB / 399.3 MB, free: 44.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.9e-05/0.4018, allocations: 28.64 kB / 399.3 MB, free: 44.01 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.4019, allocations: 82.59 kB / 399.4 MB, free: 43.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.4021, allocations: 88.67 kB / 399.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4021, allocations: 1.125 kB / 399.5 MB, free: 43.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002512/0.4024, allocations: 123.7 kB / 399.6 MB, free: 43.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.4024, allocations: 5.531 kB / 399.6 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4024, allocations: 1.156 kB / 399.6 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.4024, allocations: 1.094 kB / 399.6 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.4026, allocations: 31.45 kB / 399.7 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.4026, allocations: 5.531 kB / 399.7 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.208e-05/0.4027, allocations: 8.438 kB / 399.7 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.4027, allocations: 4.125 kB / 399.7 MB, free: 43.75 MB / 318.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,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.000128/0.4028, allocations: 158.2 kB / 399.8 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.239e-05/0.4029, allocations: 65.3 kB / 399.9 MB, free: 43.56 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.044e-05/0.403, allocations: 27.64 kB / 399.9 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.403, allocations: 1.375 kB / 399.9 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.403, allocations: 9.875 kB / 399.9 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.4031, allocations: 3.938 kB / 399.9 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002209/0.4033, allocations: 241 kB / 400.2 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4033, allocations: 1.219 kB / 400.2 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.713e-05/0.4034, allocations: 8.969 kB / 400.2 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.4034, allocations: 2.344 kB / 400.2 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.4034, allocations: 4.953 kB / 400.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.4034, allocations: 2.281 kB / 400.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4034, allocations: 3.938 kB / 400.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.4037, allocations: 168.7 kB / 400.4 MB, free: 43.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.4039, allocations: 113.1 kB / 400.5 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.4039, allocations: 2.25 kB / 400.5 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.556e-05/0.404, allocations: 7.422 kB / 400.5 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.561e-05/0.4041, allocations: 7.75 kB / 400.5 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.4041, allocations: 11.64 kB / 400.5 MB, free: 43.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000276/0.4044, allocations: 245.9 kB / 400.7 MB, free: 42.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4044, allocations: 0 / 400.7 MB, free: 42.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.4047, allocations: 34.41 kB / 400.8 MB, free: 42.85 MB / 318.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,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.001018/0.4057, allocations: 422.8 kB / 401.2 MB, free: 42.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002726/0.406, allocations: 76.72 kB / 401.3 MB, free: 42.47 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.406, allocations: 1.344 kB / 401.3 MB, free: 42.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.364e-05/0.4061, allocations: 32.55 kB / 401.3 MB, free: 42.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.4066, allocations: 67.45 kB / 401.4 MB, free: 42.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006673/0.4072, allocations: 418.2 kB / 401.8 MB, free: 42.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.4075, allocations: 0.7436 MB / 402.5 MB, free: 41.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.481e-05/0.4076, allocations: 26.28 kB / 402.5 MB, free: 41.37 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.218e-05/0.4076, allocations: 23.25 kB / 402.6 MB, free: 41.36 MB / 318.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4076, allocations: 0 / 402.6 MB, free: 41.36 MB / 318.1 MB Notification: Performance of Templates: time 0.006797/0.4144, allocations: 2.832 MB / 405.4 MB, free: 39.91 MB / 318.1 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/jenkins/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