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.000906/0.0009062, allocations: 173.6 kB / 16.76 MB, free: 5.051 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.33/1.33, allocations: 205 MB / 222.5 MB, free: 9.066 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.0006961/0.0006961, allocations: 93.34 kB / 270.5 MB, free: 8.66 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.06599/0.06599, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003203, allocations: 19.98 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06432/0.06466, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001626/0.06632, allocations: 1.591 MB / 443.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.06752, allocations: 1.049 MB / 444.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.234e-05/0.06761, allocations: 4 kB / 444.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.06787, allocations: 63.78 kB / 444.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.06805, allocations: 83.72 kB / 444.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004945/0.06855, allocations: 207.6 kB / 444.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.06871, allocations: 155.6 kB / 444.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.056e-05/0.0688, allocations: 25.55 kB / 444.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.419e-05/0.06889, allocations: 63.64 kB / 444.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.899e-05/0.06897, allocations: 71.69 kB / 445 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.069, allocations: 4 kB / 445 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.06911, allocations: 47.91 kB / 445 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.189e-05/0.06918, allocations: 47.83 kB / 445.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.369e-05/0.06924, allocations: 75.42 kB / 445.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.06941, allocations: 175.9 kB / 445.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.06942, allocations: 0 / 445.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.06942, allocations: 0 / 445.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.06943, allocations: 0 / 445.3 MB, free: 12.73 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.0004646/0.0699, allocations: 0.4884 MB / 445.8 MB, free: 12.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.878e-05/0.06994, allocations: 15.97 kB / 445.8 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.973e-05/0.06999, allocations: 24.64 kB / 445.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.07023, allocations: 287.6 kB / 446.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.07027, allocations: 384 / 446.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.07029, allocations: 16.12 kB / 446.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.07055, allocations: 155.6 kB / 446.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.07057, allocations: 11.88 kB / 446.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.07059, allocations: 0 / 446.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.0706, allocations: 0 / 446.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.399e-05/0.0707, allocations: 39.97 kB / 446.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003556/0.07106, allocations: 386.2 kB / 446.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.07126, allocations: 115.9 kB / 446.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.89e-05/0.07134, allocations: 50.56 kB / 446.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.07137, allocations: 7.984 kB / 446.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.07154, allocations: 79.33 kB / 447 MB, free: 10.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.184e-06/0.07155, allocations: 0 / 447 MB, free: 10.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003086/0.07186, allocations: 153.3 kB / 447.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.07192, allocations: 162.5 kB / 447.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.07215, allocations: 326.6 kB / 447.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.07217, allocations: 29.7 kB / 447.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.45e-05/0.07223, allocations: 132.1 kB / 447.8 MB, free: 9.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.07226, allocations: 11.81 kB / 447.8 MB, free: 9.984 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/0.07229, allocations: 21.7 kB / 447.8 MB, free: 9.957 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.4e-05/0.07234, allocations: 334.8 kB / 448.1 MB, free: 9.621 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.182e-05/0.0724, allocations: 27.92 kB / 448.2 MB, free: 9.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.647e-05/0.07249, allocations: 90.78 kB / 448.2 MB, free: 9.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.07261, allocations: 84.22 kB / 448.3 MB, free: 9.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.07262, allocations: 0 / 448.3 MB, free: 9.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001852/0.07281, allocations: 125.4 kB / 448.5 MB, free: 9.254 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.07283, allocations: 4 kB / 448.5 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.07284, allocations: 4 kB / 448.5 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.07286, allocations: 0 / 448.5 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.346e-05/0.07296, allocations: 19.98 kB / 448.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.07297, allocations: 0 / 448.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.105e-05/0.07305, allocations: 19.91 kB / 448.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.07306, allocations: 7.984 kB / 448.5 MB, free: 9.199 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 ($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 9.111e-05/0.07316, allocations: 154.6 kB / 448.7 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.55e-05/0.07323, allocations: 65.41 kB / 448.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.588e-05/0.07328, allocations: 29.7 kB / 448.7 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.07329, allocations: 0 / 448.7 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.0733, allocations: 0 / 448.7 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.07331, allocations: 7.938 kB / 448.8 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.07344, allocations: 245.6 kB / 449 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.07345, allocations: 4.312 kB / 449 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.749e-05/0.07351, allocations: 15.98 kB / 449 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.07352, allocations: 0 / 449 MB, free: 8.625 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.07354, allocations: 4 kB / 449 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.07354, allocations: 0 / 449 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.07355, allocations: 3.938 kB / 449 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.07376, allocations: 170.4 kB / 449.2 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.381e-05/0.07383, allocations: 108.9 kB / 449.3 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/0.07387, allocations: 7.984 kB / 449.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.073e-05/0.07394, allocations: 0 / 449.3 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.07399, allocations: 16.02 kB / 449.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.07401, allocations: 7.938 kB / 449.3 MB, free: 8.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001598/0.07418, allocations: 241.9 kB / 449.6 MB, free: 8.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.07418, allocations: 0 / 449.6 MB, free: 8.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002437/0.07443, allocations: 43.98 kB / 449.6 MB, free: 7.988 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.0007449/0.07519, allocations: 415.6 kB / 450 MB, free: 7.574 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001844/0.07538, allocations: 79.83 kB / 450.1 MB, free: 7.496 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.07539, allocations: 0 / 450.1 MB, free: 7.496 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.696e-05/0.07547, allocations: 27.98 kB / 450.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.07583, allocations: 56.94 kB / 450.2 MB, free: 7.414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004634/0.07631, allocations: 440.5 kB / 450.6 MB, free: 6.949 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.07645, allocations: 0.74 MB / 451.3 MB, free: 6.184 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.056e-05/0.0765, allocations: 27.42 kB / 451.4 MB, free: 6.16 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.07651, allocations: 0 / 451.4 MB, free: 6.16 MB / 298.7 MB Notification: Performance of Templates: time 0.003574/0.08009, allocations: 2.863 MB / 454.2 MB, free: 3.293 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