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.001016/0.001016, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009998/0.0009998, allocations: 145.7 kB / 24.89 MB, free: 8.742 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.9332/0.9332, allocations: 173.4 MB / 201.5 MB, free: 8.273 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.623e-06/1.623e-06, allocations: 0 / 268.5 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.774e-05/2.937e-05, allocations: 10.59 kB / 268.5 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003113/0.003142, allocations: 1.966 MB / 270.5 MB, free: 7.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.004609, allocations: 1.05 MB / 271.5 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.00475, allocations: 3.938 kB / 271.5 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006104/0.00536, allocations: 156.7 kB / 271.7 MB, free: 6.574 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.005579, allocations: 108.4 kB / 271.8 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000463/0.006042, allocations: 204.8 kB / 272 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.006249, allocations: 179.4 kB / 272.2 MB, free: 6.094 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.006357, allocations: 32.38 kB / 272.2 MB, free: 6.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.00649, allocations: 91.78 kB / 272.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.006604, allocations: 67.8 kB / 272.4 MB, free: 5.906 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.006628, allocations: 11.94 kB / 272.4 MB, free: 5.895 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.006768, allocations: 59.89 kB / 272.4 MB, free: 5.836 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.006829, allocations: 41.58 kB / 272.5 MB, free: 5.797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.176e-05/0.00689, allocations: 39.84 kB / 272.5 MB, free: 5.758 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002544/0.007145, allocations: 155.4 kB / 272.7 MB, free: 5.605 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.00715, allocations: 0 / 272.7 MB, free: 5.605 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.007152, allocations: 0.5 kB / 272.7 MB, free: 5.605 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.007157, allocations: 0 / 272.7 MB, free: 5.605 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.0004491/0.007606, allocations: 414.1 kB / 273.1 MB, free: 5.172 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.007642, allocations: 12.66 kB / 273.1 MB, free: 5.16 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.014e-05/0.007682, allocations: 12.92 kB / 273.1 MB, free: 5.148 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.007931, allocations: 214.1 kB / 273.3 MB, free: 4.914 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.007951, allocations: 4.375 kB / 273.3 MB, free: 4.91 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.007962, allocations: 8.375 kB / 273.3 MB, free: 4.902 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.008152, allocations: 121.2 kB / 273.4 MB, free: 4.762 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.008161, allocations: 7.875 kB / 273.4 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.008168, allocations: 0 / 273.4 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.008174, allocations: 0 / 273.4 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.533e-05/0.008209, allocations: 22.77 kB / 273.5 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002856/0.008495, allocations: 203.5 kB / 273.7 MB, free: 4.508 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.008627, allocations: 134.6 kB / 273.8 MB, free: 4.348 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.987e-05/0.008656, allocations: 26.58 kB / 273.8 MB, free: 4.312 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.008676, allocations: 7.938 kB / 273.8 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.849e-05/0.008774, allocations: 70.14 kB / 273.9 MB, free: 4.223 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.008776, allocations: 0 / 273.9 MB, free: 4.223 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001391/0.008915, allocations: 81.61 kB / 274 MB, free: 4.137 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.008963, allocations: 114.7 kB / 274.1 MB, free: 4 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.009104, allocations: 218.7 kB / 274.3 MB, free: 3.77 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.009122, allocations: 29.7 kB / 274.3 MB, free: 3.734 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.375e-05/0.009166, allocations: 108 kB / 274.4 MB, free: 3.625 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.00919, allocations: 19.88 kB / 274.5 MB, free: 3.605 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.498e-05/0.009225, allocations: 21.72 kB / 274.5 MB, free: 3.578 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.009334, allocations: 326.8 kB / 274.8 MB, free: 3.25 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.208e-05/0.009356, allocations: 15.06 kB / 274.8 MB, free: 3.234 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.039e-05/0.009396, allocations: 56.27 kB / 274.9 MB, free: 3.164 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.414e-05/0.009441, allocations: 39.55 kB / 274.9 MB, free: 3.117 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.009442, allocations: 0 / 274.9 MB, free: 3.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 7.713e-05/0.00952, allocations: 68.44 kB / 275 MB, free: 3.043 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.009535, allocations: 4 kB / 275 MB, free: 3.039 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.009541, allocations: 4 kB / 275 MB, free: 3.035 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.009552, allocations: 0 / 275 MB, free: 3.035 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.578e-05/0.009618, allocations: 15.92 kB / 275 MB, free: 3.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.416e-06/0.009622, allocations: 0 / 275 MB, free: 3.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.445e-05/0.009656, allocations: 12 kB / 275 MB, free: 3.008 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-06/0.009662, allocations: 4 kB / 275 MB, free: 3.004 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 8.013e-05/0.009743, allocations: 120.7 kB / 275.1 MB, free: 2.875 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.75e-05/0.00979, allocations: 53.56 kB / 275.2 MB, free: 2.816 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.744e-05/0.009888, allocations: 79.58 kB / 275.3 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.009892, allocations: 3.984 kB / 275.3 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.706e-06/0.009894, allocations: 4 kB / 275.3 MB, free: 2.723 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.0099, allocations: 3.984 kB / 275.3 MB, free: 2.719 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.575e-05/0.009996, allocations: 101.8 kB / 275.4 MB, free: 2.602 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.009999, allocations: 8 kB / 275.4 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.501e-05/0.01002, allocations: 7.938 kB / 275.4 MB, free: 2.586 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.01003, allocations: 0 / 275.4 MB, free: 2.586 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.01003, allocations: 11.94 kB / 275.4 MB, free: 2.574 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.01004, allocations: 3.984 kB / 275.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01004, allocations: 0 / 275.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.844e-05/0.01012, allocations: 100.5 kB / 275.5 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.01016, allocations: 31.89 kB / 275.5 MB, free: 2.414 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.01018, allocations: 3.938 kB / 275.5 MB, free: 2.41 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.734e-05/0.01022, allocations: 12.06 kB / 275.5 MB, free: 2.398 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.879e-05/0.01024, allocations: 11.98 kB / 275.6 MB, free: 2.387 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.01025, allocations: 0 / 275.6 MB, free: 2.387 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.903e-05/0.01032, allocations: 81.55 kB / 275.6 MB, free: 2.305 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01032, allocations: 4 kB / 275.6 MB, free: 2.301 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001427/0.01047, allocations: 27.94 kB / 275.7 MB, free: 2.273 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.001204/0.01167, allocations: 0.516 MB / 276.2 MB, free: 1.988 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.01177, allocations: 36.78 kB / 276.2 MB, free: 1.949 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.01178, allocations: 8.062 kB / 276.2 MB, free: 1.941 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.988e-05/0.01181, allocations: 16.86 kB / 276.2 MB, free: 1.922 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.01202, allocations: 63.28 kB / 276.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003782/0.01239, allocations: 292.3 kB / 276.6 MB, free: 1.543 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.737e-05/0.01244, allocations: 83.81 kB / 276.7 MB, free: 1.441 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.662e-05/0.01249, allocations: 21.81 kB / 276.7 MB, free: 1.418 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.242e-05/0.01257, allocations: 79.36 kB / 276.8 MB, free: 1.34 MB / 250.7 MB Notification: Performance of SimCode: time 1.072e-06/0.01257, allocations: 0 / 276.8 MB, free: 1.34 MB / 250.7 MB Notification: Performance of Templates: time 0.004922/0.01749, allocations: 2.822 MB / 279.6 MB, free: 14.58 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 -s gbode -gbm=radauIIA3 -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.671697701793164]