Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001463/0.001463, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.017/1.017, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.992e-05/3.156e-05, allocations: 5.266 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002853/0.002884, allocations: 1.959 MB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.004488, allocations: 1.176 MB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001273/0.004615, allocations: 11.94 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005517/0.005167, allocations: 163.3 kB / 276.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003542/0.005521, allocations: 159.3 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.00594, allocations: 171.3 kB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.006179, allocations: 191.4 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.891e-05/0.006278, allocations: 25.8 kB / 276.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.006399, allocations: 99.67 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.769e-05/0.006497, allocations: 67.8 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.006517, allocations: 8 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.006645, allocations: 63.88 kB / 277 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.462e-05/0.00671, allocations: 47.8 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.373e-05/0.006763, allocations: 39.78 kB / 277.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002528/0.007016, allocations: 155.5 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.00702, allocations: 0 / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.007021, allocations: 0 / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.007026, allocations: 0 / 277.2 MB, free: 13.12 MB / 266.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.0006057/0.007632, allocations: 0.5439 MB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.007671, allocations: 19.97 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.402e-05/0.007735, allocations: 28.8 kB / 277.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.00797, allocations: 216.4 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.007991, allocations: 8.375 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.008004, allocations: 12.25 kB / 278 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.008259, allocations: 140.6 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.008266, allocations: 192 / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.00828, allocations: 16.34 kB / 278.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.008288, allocations: 3.938 kB / 278.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.61e-05/0.008334, allocations: 15.98 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003601/0.008694, allocations: 351 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.008834, allocations: 113.3 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.212e-05/0.008876, allocations: 43.06 kB / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.008895, allocations: 3.938 kB / 278.7 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000105/0.009, allocations: 76.97 kB / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.009001, allocations: 0 / 278.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002401/0.009241, allocations: 117.5 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.0093, allocations: 110.8 kB / 279 MB, free: 11.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.009484, allocations: 292.3 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.009508, allocations: 33.95 kB / 279.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/0.009576, allocations: 166.9 kB / 279.5 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.009596, allocations: 15.89 kB / 279.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.009637, allocations: 31.33 kB / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.00976, allocations: 0.504 MB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.635e-05/0.009786, allocations: 8 kB / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.525e-05/0.009831, allocations: 64.75 kB / 280.1 MB, free: 9.926 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.924e-05/0.009881, allocations: 39.62 kB / 280.2 MB, free: 9.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.009883, allocations: 0 / 280.2 MB, free: 9.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.802e-05/0.009981, allocations: 85.47 kB / 280.2 MB, free: 9.789 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.009997, allocations: 14.88 kB / 280.2 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.01, allocations: 0 / 280.2 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.01001, allocations: 0 / 280.2 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.24e-05/0.01008, allocations: 11.98 kB / 280.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.01008, allocations: 3.938 kB / 280.3 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.661e-05/0.01012, allocations: 8 kB / 280.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.615e-06/0.01013, allocations: 4 kB / 280.3 MB, free: 9.75 MB / 266.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.952e-05/0.0102, allocations: 156.6 kB / 280.4 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.446e-05/0.01027, allocations: 73.42 kB / 280.5 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.01041, allocations: 103.6 kB / 280.6 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.01041, allocations: 0 / 280.6 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.01041, allocations: 3.938 kB / 280.6 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.01042, allocations: 4 kB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001341/0.01055, allocations: 176.5 kB / 280.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01056, allocations: 0 / 280.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.408e-05/0.01058, allocations: 4 kB / 280.8 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.01059, allocations: 7.938 kB / 280.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.01059, allocations: 0 / 280.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.0106, allocations: 3.938 kB / 280.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.0106, allocations: 4 kB / 280.8 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.01074, allocations: 167.8 kB / 281 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.01078, allocations: 35.78 kB / 281 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.0108, allocations: 0 / 281 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.716e-05/0.01084, allocations: 12.06 kB / 281 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.01088, allocations: 7.984 kB / 281 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.0109, allocations: 4 kB / 281 MB, free: 8.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.01102, allocations: 205.1 kB / 281.2 MB, free: 8.711 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01102, allocations: 0 / 281.2 MB, free: 8.711 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001727/0.01119, allocations: 31.92 kB / 281.3 MB, free: 8.68 MB / 266.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.0008897/0.01208, allocations: 393.5 kB / 281.6 MB, free: 8.406 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001472/0.01223, allocations: 51.59 kB / 281.7 MB, free: 8.352 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01223, allocations: 4.062 kB / 281.7 MB, free: 8.348 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.886e-05/0.01227, allocations: 27.62 kB / 281.7 MB, free: 8.316 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.01256, allocations: 64.5 kB / 281.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004366/0.013, allocations: 297.9 kB / 282.1 MB, free: 7.93 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.159e-05/0.01305, allocations: 91.69 kB / 282.2 MB, free: 7.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.495e-05/0.0131, allocations: 21.62 kB / 282.2 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.871e-05/0.01314, allocations: 20.69 kB / 282.2 MB, free: 7.773 MB / 266.7 MB Notification: Performance of SimCode: time 9.21e-07/0.01314, allocations: 0 / 282.2 MB, free: 7.773 MB / 266.7 MB Notification: Performance of Templates: time 0.005205/0.01835, allocations: 2.822 MB / 285 MB, free: 4.988 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.926041203085333]