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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 110.8 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009566/0.0009568, allocations: 39.92 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3027, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003435/0.3062, allocations: 1.937 MB / 401.4 MB, free: 31.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.3079, allocations: 1.029 MB / 402.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.3081, allocations: 1.281 kB / 402.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007294/0.3088, allocations: 147.6 kB / 402.6 MB, free: 30.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002793/0.3091, allocations: 111.6 kB / 402.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005964/0.3097, allocations: 173.9 kB / 402.9 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.31, allocations: 187.4 kB / 403.1 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.3101, allocations: 29.55 kB / 403.1 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.3102, allocations: 67.66 kB / 403.1 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.3103, allocations: 67.69 kB / 403.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.3104, allocations: 4 kB / 403.2 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.3105, allocations: 47.95 kB / 403.3 MB, free: 29.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.011e-05/0.3106, allocations: 43.78 kB / 403.3 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.747e-05/0.3107, allocations: 63.55 kB / 403.4 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002627/0.311, allocations: 200.9 kB / 403.6 MB, free: 29.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.311, allocations: 0 / 403.6 MB, free: 29.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.311, allocations: 0 / 403.6 MB, free: 29.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.311, allocations: 0 / 403.6 MB, free: 29.29 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.0009198/0.3119, allocations: 0.5002 MB / 404.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.312, allocations: 11.97 kB / 404.1 MB, free: 28.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.652e-05/0.312, allocations: 20.66 kB / 404.1 MB, free: 28.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003367/0.3124, allocations: 258.9 kB / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.3124, allocations: 4.375 kB / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.3124, allocations: 12.12 kB / 404.4 MB, free: 28.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.3128, allocations: 150 kB / 404.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3128, allocations: 0 / 404.5 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.3129, allocations: 4 kB / 404.5 MB, free: 28.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3129, allocations: 0 / 404.5 MB, free: 28.22 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.134e-05/0.313, allocations: 35.92 kB / 404.6 MB, free: 28.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004582/0.3134, allocations: 366.2 kB / 404.9 MB, free: 27.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.3136, allocations: 107.9 kB / 405 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.968e-05/0.3137, allocations: 50.55 kB / 405.1 MB, free: 27.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.3138, allocations: 7.984 kB / 405.1 MB, free: 27.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.3139, allocations: 71.39 kB / 405.1 MB, free: 27.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.274e-06/0.3139, allocations: 0 / 405.1 MB, free: 27.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003121/0.3143, allocations: 141.3 kB / 405.3 MB, free: 27.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.3143, allocations: 132.5 kB / 405.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.3145, allocations: 261 kB / 405.7 MB, free: 26.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.3146, allocations: 29.7 kB / 405.7 MB, free: 26.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.197e-05/0.3146, allocations: 116 kB / 405.8 MB, free: 26.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3147, allocations: 19.8 kB / 405.8 MB, free: 26.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.3147, allocations: 33.97 kB / 405.9 MB, free: 26.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.49e-05/0.3148, allocations: 334.8 kB / 406.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.343e-05/0.3148, allocations: 16 kB / 406.2 MB, free: 26.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.199e-05/0.3149, allocations: 77.86 kB / 406.3 MB, free: 26.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.315, allocations: 76.52 kB / 406.4 MB, free: 26.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.315, allocations: 3.938 kB / 406.4 MB, free: 26.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000164/0.3152, allocations: 113.4 kB / 406.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.3152, allocations: 4 kB / 406.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3153, allocations: 4.125 kB / 406.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3153, allocations: 7.938 kB / 406.5 MB, free: 26.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.102e-05/0.3154, allocations: 11.98 kB / 406.5 MB, free: 26.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3154, allocations: 4 kB / 406.5 MB, free: 26.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.223e-05/0.3154, allocations: 19.78 kB / 406.5 MB, free: 26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.3155, allocations: 4 kB / 406.5 MB, free: 26 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,sample1.u,shiftSample1.y,shiftSample1.u,sample1.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 0.0001174/0.3156, allocations: 145.7 kB / 406.7 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.3157, allocations: 61.53 kB / 406.7 MB, free: 25.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.403e-05/0.3157, allocations: 25.73 kB / 406.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3157, allocations: 0 / 406.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3157, allocations: 0 / 406.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3158, allocations: 3.938 kB / 406.8 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.3159, allocations: 225.6 kB / 407 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3159, allocations: 0 / 407 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.408e-05/0.316, allocations: 7.938 kB / 407 MB, free: 25.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.316, allocations: 3.984 kB / 407 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.316, allocations: 4 kB / 407 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.316, allocations: 0 / 407 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.316, allocations: 4 kB / 407 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004436/0.3164, allocations: 0.7541 MB / 407.7 MB, free: 24.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.829e-05/0.3165, allocations: 108.8 kB / 407.9 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.3166, allocations: 7.938 kB / 407.9 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.7e-05/0.3166, allocations: 16.05 kB / 407.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.3167, allocations: 4 kB / 407.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.3167, allocations: 4 kB / 407.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001457/0.3169, allocations: 192.5 kB / 408.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.3169, allocations: 0 / 408.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00034/0.3172, allocations: 39.88 kB / 408.1 MB, free: 24.25 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.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.0009406/0.3182, allocations: 422.2 kB / 408.5 MB, free: 24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002097/0.3184, allocations: 67.91 kB / 408.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3184, allocations: 0 / 408.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.687e-05/0.3185, allocations: 28.06 kB / 408.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.3189, allocations: 60.55 kB / 408.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005724/0.3195, allocations: 489.6 kB / 409.2 MB, free: 23.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.3197, allocations: 0.7322 MB / 409.9 MB, free: 22.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.502e-05/0.3197, allocations: 25.52 kB / 409.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.388e-05/0.3198, allocations: 19.44 kB / 409.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3198, allocations: 4 kB / 409.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of Templates: time 0.005918/0.3257, allocations: 2.382 MB / 412.3 MB, free: 20.16 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches