Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008601/0.0008602, allocations: 172.9 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.287/1.287, allocations: 205.4 MB / 223 MB, free: 9.012 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.000698/0.000698, allocations: 100.2 kB / 271.3 MB, free: 8.238 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.0719/0.0719, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003434/0.0003435, allocations: 11.98 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07109/0.07145, allocations: 50.38 MB / 443.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.001715/0.0732, allocations: 1.602 MB / 445.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.07445, allocations: 1.049 MB / 446.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.07457, allocations: 4 kB / 446.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.0749, allocations: 67.78 kB / 446.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.0751, allocations: 83.72 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005667/0.07567, allocations: 207.6 kB / 446.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.07585, allocations: 167.5 kB / 446.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.07596, allocations: 33.53 kB / 446.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.792e-05/0.07604, allocations: 63.59 kB / 447 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.375e-05/0.07614, allocations: 79.67 kB / 447 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.07617, allocations: 4 kB / 447 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.0763, allocations: 47.91 kB / 447.1 MB, free: 12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.82e-05/0.07638, allocations: 51.83 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.287e-05/0.07646, allocations: 101.1 kB / 447.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001858/0.07666, allocations: 183.9 kB / 447.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.07667, allocations: 0 / 447.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.07668, allocations: 0 / 447.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.07669, allocations: 0 / 447.4 MB, free: 11.67 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005232/0.07722, allocations: 0.5078 MB / 447.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.07726, allocations: 12.03 kB / 447.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.647e-05/0.07731, allocations: 28.56 kB / 448 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.07757, allocations: 287.6 kB / 448.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.07759, allocations: 4.375 kB / 448.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.07761, allocations: 16.12 kB / 448.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.0779, allocations: 177.8 kB / 448.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.07792, allocations: 3.984 kB / 448.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.07794, allocations: 4 kB / 448.4 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.07795, allocations: 4 kB / 448.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.07805, allocations: 43.91 kB / 448.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003892/0.07845, allocations: 391.2 kB / 448.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.07867, allocations: 146.5 kB / 449 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.07878, allocations: 63.42 kB / 449.1 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.07882, allocations: 3.984 kB / 449.1 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001695/0.07899, allocations: 83.27 kB / 449.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.079, allocations: 0 / 449.2 MB, free: 9.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003318/0.07934, allocations: 173.2 kB / 449.3 MB, free: 9.496 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.0794, allocations: 187.9 kB / 449.5 MB, free: 9.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.07965, allocations: 334.7 kB / 449.8 MB, free: 8.934 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.07967, allocations: 25.7 kB / 449.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.407e-05/0.07973, allocations: 128.4 kB / 450 MB, free: 8.773 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.07976, allocations: 24.11 kB / 450 MB, free: 8.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.07977, allocations: 4 kB / 450 MB, free: 8.746 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.05e-05/0.07982, allocations: 338.8 kB / 450.4 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.105e-05/0.07989, allocations: 23.98 kB / 450.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.111e-05/0.07998, allocations: 100.5 kB / 450.5 MB, free: 8.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.08011, allocations: 106.2 kB / 450.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.08012, allocations: 0 / 450.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001967/0.08033, allocations: 141.2 kB / 450.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.08035, allocations: 8 kB / 450.7 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.08036, allocations: 0 / 450.7 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.08038, allocations: 7.984 kB / 450.7 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.08049, allocations: 16 kB / 450.7 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.0805, allocations: 4 kB / 450.8 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.841e-05/0.08059, allocations: 15.92 kB / 450.8 MB, free: 7.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.0806, allocations: 4.188 kB / 450.8 MB, free: 7.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (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 9.832e-05/0.08071, allocations: 158.6 kB / 450.9 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.555e-05/0.08079, allocations: 77.34 kB / 451 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.71e-05/0.08084, allocations: 29.7 kB / 451 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.08085, allocations: 0 / 451 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.08086, allocations: 4 kB / 451 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.08087, allocations: 3.938 kB / 451 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.08101, allocations: 249.4 kB / 451.3 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.08103, allocations: 12.03 kB / 451.3 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.94e-05/0.0811, allocations: 15.98 kB / 451.3 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.08111, allocations: 0 / 451.3 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.08113, allocations: 4 kB / 451.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.08113, allocations: 3.938 kB / 451.3 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.08114, allocations: 3.984 kB / 451.3 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002129/0.08136, allocations: 183.3 kB / 451.5 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.197e-05/0.08144, allocations: 116.8 kB / 451.6 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.08148, allocations: 11.98 kB / 451.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.965e-05/0.08155, allocations: 4 kB / 451.6 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.502e-05/0.0816, allocations: 11.98 kB / 451.6 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.08163, allocations: 12 kB / 451.7 MB, free: 6.938 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001693/0.0818, allocations: 241.9 kB / 451.9 MB, free: 6.699 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08181, allocations: 3.938 kB / 451.9 MB, free: 6.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.08205, allocations: 43.92 kB / 451.9 MB, free: 6.652 MB / 298.7 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,backSample1.y,shiftSample1.y,backSample1.u,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 (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.0007915/0.08285, allocations: 426.3 kB / 452.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001895/0.08305, allocations: 79.91 kB / 452.4 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.08306, allocations: 0 / 452.4 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.713e-05/0.08314, allocations: 28.3 kB / 452.5 MB, free: 6.121 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.08354, allocations: 81.08 kB / 452.5 MB, free: 6.039 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/0.08404, allocations: 475 kB / 453 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.08419, allocations: 0.7518 MB / 453.8 MB, free: 4.762 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.554e-05/0.08424, allocations: 19.44 kB / 453.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.08425, allocations: 0 / 453.8 MB, free: 4.746 MB / 298.7 MB Notification: Performance of Templates: time 0.003905/0.08816, allocations: 3.058 MB / 456.8 MB, free: 1.68 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches