Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 80.62 kB / 22.21 MB, free: 2.297 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009883/0.0009883, allocations: 153.2 kB / 25.6 MB, free: 8.934 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9498/0.9498, allocations: 173.4 MB / 202.3 MB, free: 8.312 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.072e-05, allocations: 3.5 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00259/0.00261, allocations: 1.916 MB / 271.1 MB, free: 7.863 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.004195, allocations: 1.016 MB / 272.1 MB, free: 6.844 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.004304, allocations: 3.938 kB / 272.1 MB, free: 6.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008022/0.005106, allocations: 156.8 kB / 272.3 MB, free: 6.688 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002122/0.005318, allocations: 123.4 kB / 272.4 MB, free: 6.566 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003253/0.005644, allocations: 205.3 kB / 272.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.005838, allocations: 175.5 kB / 272.8 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.591e-05/0.005933, allocations: 21.78 kB / 272.8 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.006044, allocations: 101.2 kB / 272.9 MB, free: 6.074 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.299e-05/0.006137, allocations: 67.8 kB / 273 MB, free: 6.008 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.006158, allocations: 8 kB / 273 MB, free: 6 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.00627, allocations: 51.91 kB / 273 MB, free: 5.949 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.006333, allocations: 49.17 kB / 273.1 MB, free: 5.902 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.795e-05/0.006381, allocations: 39.86 kB / 273.1 MB, free: 5.863 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.006592, allocations: 155.3 kB / 273.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.006594, allocations: 0.7188 kB / 273.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.006596, allocations: 0 / 273.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.006602, allocations: 0.9688 kB / 273.3 MB, free: 5.711 MB / 250.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.0005372/0.007139, allocations: 0.5478 MB / 273.8 MB, free: 5.121 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.007175, allocations: 8.781 kB / 273.8 MB, free: 5.113 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.497e-05/0.00723, allocations: 24.84 kB / 273.8 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.007439, allocations: 220.9 kB / 274.1 MB, free: 4.848 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.007454, allocations: 4.375 kB / 274.1 MB, free: 4.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.007465, allocations: 8.375 kB / 274.1 MB, free: 4.836 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.007645, allocations: 135.7 kB / 274.2 MB, free: 4.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.098e-06/0.007654, allocations: 3.938 kB / 274.2 MB, free: 4.676 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.007664, allocations: 4 kB / 274.2 MB, free: 4.672 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.00767, allocations: 4 kB / 274.2 MB, free: 4.668 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.194e-05/0.007702, allocations: 15.98 kB / 274.2 MB, free: 4.652 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002848/0.007987, allocations: 315.7 kB / 274.5 MB, free: 4.309 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.008097, allocations: 109.3 kB / 274.6 MB, free: 4.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.439e-05/0.008132, allocations: 42.97 kB / 274.7 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.008147, allocations: 4 kB / 274.7 MB, free: 4.105 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.459e-05/0.008242, allocations: 68.98 kB / 274.8 MB, free: 4.023 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.008243, allocations: 3.938 kB / 274.8 MB, free: 4.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001791/0.008422, allocations: 113.5 kB / 274.9 MB, free: 3.902 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.008471, allocations: 106.8 kB / 275 MB, free: 3.773 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.008618, allocations: 288.1 kB / 275.3 MB, free: 3.473 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.00863, allocations: 25.7 kB / 275.3 MB, free: 3.441 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.567e-05/0.008696, allocations: 170.8 kB / 275.5 MB, free: 3.27 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.008718, allocations: 27.81 kB / 275.5 MB, free: 3.242 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.008754, allocations: 27.38 kB / 275.5 MB, free: 3.207 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.008865, allocations: 0.5001 MB / 276 MB, free: 2.695 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.428e-05/0.008879, allocations: 12.23 kB / 276 MB, free: 2.684 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.374e-05/0.008913, allocations: 64.75 kB / 276.1 MB, free: 2.602 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.957e-05/0.008952, allocations: 35.62 kB / 276.1 MB, free: 2.559 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.008954, allocations: 0 / 276.1 MB, free: 2.559 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 7.976e-05/0.009034, allocations: 81.47 kB / 276.2 MB, free: 2.473 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.009044, allocations: 8 kB / 276.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.009048, allocations: 0 / 276.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.444e-06/0.009055, allocations: 0 / 276.2 MB, free: 2.465 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.847e-05/0.009104, allocations: 11.98 kB / 276.2 MB, free: 2.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.009107, allocations: 7.938 kB / 276.2 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.395e-05/0.009141, allocations: 8.016 kB / 276.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.009147, allocations: 4 kB / 276.2 MB, free: 2.434 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.415e-05/0.009221, allocations: 160.6 kB / 276.4 MB, free: 2.266 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/0.009272, allocations: 69.47 kB / 276.5 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.009386, allocations: 91.42 kB / 276.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.009388, allocations: 0 / 276.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.009391, allocations: 4 kB / 276.6 MB, free: 2.09 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.009394, allocations: 0 / 276.6 MB, free: 2.09 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.009499, allocations: 137.2 kB / 276.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.009501, allocations: 8.062 kB / 276.7 MB, free: 1.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.867e-05/0.00952, allocations: 7.984 kB / 276.7 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.009522, allocations: 3.938 kB / 276.7 MB, free: 1.91 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.009528, allocations: 4 kB / 276.7 MB, free: 1.906 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.00953, allocations: 3.938 kB / 276.7 MB, free: 1.902 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.009531, allocations: 0 / 276.7 MB, free: 1.902 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.942e-05/0.009631, allocations: 143.9 kB / 276.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.882e-05/0.009669, allocations: 35.78 kB / 276.9 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.009688, allocations: 11.88 kB / 276.9 MB, free: 1.684 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.188e-05/0.009719, allocations: 4 kB / 276.9 MB, free: 1.68 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.511e-05/0.009745, allocations: 12.05 kB / 276.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.009756, allocations: 8 kB / 276.9 MB, free: 1.66 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.98e-05/0.009835, allocations: 193.1 kB / 277.1 MB, free: 1.473 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009835, allocations: 0 / 277.1 MB, free: 1.473 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000152/0.009987, allocations: 20 kB / 277.1 MB, free: 1.453 MB / 250.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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0007998/0.01079, allocations: 415.6 kB / 277.5 MB, free: 1.188 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.868e-05/0.01088, allocations: 47.61 kB / 277.6 MB, free: 1.137 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01088, allocations: 0 / 277.6 MB, free: 1.137 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.104e-05/0.01091, allocations: 27.66 kB / 277.6 MB, free: 1.105 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.01113, allocations: 55.39 kB / 277.7 MB, free: 1.051 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003117/0.01144, allocations: 298.2 kB / 278 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.008e-05/0.01148, allocations: 79.81 kB / 278 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.95e-05/0.01152, allocations: 17.62 kB / 278.1 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.159e-05/0.01161, allocations: 102.2 kB / 278.2 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01161, allocations: 0 / 278.2 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of Templates: time 0.004591/0.0162, allocations: 2.88 MB / 281 MB, free: 13.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7804590687155724]