Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.001441, 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.447/1.447, allocations: 222.9 MB / 240.9 MB, free: 11 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.001084/0.001084, allocations: 104.2 kB / 291.2 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008477/0.0008481, allocations: 39.94 kB / 350 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3047, allocations: 49.43 MB / 399.5 MB, free: 33.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003143/0.3079, allocations: 1.964 MB / 401.4 MB, free: 31.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.3093, allocations: 1.059 MB / 402.5 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.3095, allocations: 7.938 kB / 402.5 MB, free: 30.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005895/0.3101, allocations: 143.6 kB / 402.6 MB, free: 30.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.3104, allocations: 99.7 kB / 402.7 MB, free: 30.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.3109, allocations: 185.7 kB / 402.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.3111, allocations: 191.4 kB / 403.1 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.3112, allocations: 29.66 kB / 403.1 MB, free: 29.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.482e-05/0.3113, allocations: 75.62 kB / 403.2 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.3114, allocations: 83.62 kB / 403.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.3115, allocations: 4 kB / 403.3 MB, free: 29.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.3116, allocations: 47.86 kB / 403.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.555e-05/0.3116, allocations: 47.81 kB / 403.4 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.93e-05/0.3117, allocations: 63.55 kB / 403.5 MB, free: 29.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002306/0.312, allocations: 212.8 kB / 403.7 MB, free: 29.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.312, allocations: 0 / 403.7 MB, free: 29.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.312, allocations: 0 / 403.7 MB, free: 29.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.289e-06/0.312, allocations: 0 / 403.7 MB, free: 29.21 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000766/0.3128, allocations: 0.5195 MB / 404.2 MB, free: 28.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3128, allocations: 8.031 kB / 404.2 MB, free: 28.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/0.3129, allocations: 20.66 kB / 404.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.3132, allocations: 266.8 kB / 404.5 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.3132, allocations: 8.375 kB / 404.5 MB, free: 28.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.3132, allocations: 8.125 kB / 404.5 MB, free: 28.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.3136, allocations: 172.4 kB / 404.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.3136, allocations: 0 / 404.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.3136, allocations: 4 kB / 404.7 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.3136, allocations: 4 kB / 404.7 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.3137, allocations: 35.91 kB / 404.7 MB, free: 28.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004622/0.3142, allocations: 371.2 kB / 405.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/0.3144, allocations: 142.5 kB / 405.2 MB, free: 27.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.706e-05/0.3145, allocations: 55.42 kB / 405.3 MB, free: 27.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.3146, allocations: 0 / 405.3 MB, free: 27.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/0.3147, allocations: 83.33 kB / 405.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.432e-06/0.3147, allocations: 4 kB / 405.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003521/0.3151, allocations: 153.3 kB / 405.5 MB, free: 27.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/0.3152, allocations: 170.1 kB / 405.7 MB, free: 26.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/0.3154, allocations: 265.4 kB / 405.9 MB, free: 26.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.3154, allocations: 33.7 kB / 405.9 MB, free: 26.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.455e-05/0.3155, allocations: 120.3 kB / 406.1 MB, free: 26.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.3155, allocations: 19.8 kB / 406.1 MB, free: 26.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.3156, allocations: 33.7 kB / 406.1 MB, free: 26.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.406e-05/0.3157, allocations: 330.8 kB / 406.4 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.594e-05/0.3158, allocations: 23.98 kB / 406.5 MB, free: 26.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.501e-05/0.3158, allocations: 90.66 kB / 406.5 MB, free: 25.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.316, allocations: 97.97 kB / 406.6 MB, free: 25.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.316, allocations: 0 / 406.6 MB, free: 25.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001744/0.3161, allocations: 125.3 kB / 406.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3162, allocations: 8 kB / 406.8 MB, free: 25.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3162, allocations: 3.938 kB / 406.8 MB, free: 25.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3162, allocations: 4 kB / 406.8 MB, free: 25.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.136e-05/0.3163, allocations: 16.17 kB / 406.8 MB, free: 25.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.3163, allocations: 7.938 kB / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.465e-05/0.3164, allocations: 11.94 kB / 406.8 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.3164, allocations: 11.97 kB / 406.8 MB, free: 25.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.808e-05/0.3165, allocations: 154.5 kB / 407 MB, free: 25.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.141e-05/0.3166, allocations: 73.36 kB / 407.1 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.073e-05/0.3166, allocations: 25.7 kB / 407.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.3166, allocations: 8.094 kB / 407.1 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3167, allocations: 0 / 407.1 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3167, allocations: 7.922 kB / 407.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.3168, allocations: 230 kB / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3168, allocations: 0 / 407.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.629e-05/0.3169, allocations: 15.98 kB / 407.3 MB, free: 25.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3169, allocations: 4 kB / 407.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.3169, allocations: 0 / 407.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3169, allocations: 4 kB / 407.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3169, allocations: 3.938 kB / 407.3 MB, free: 25.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004434/0.3173, allocations: 0.7783 MB / 408.1 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.844e-05/0.3174, allocations: 108.9 kB / 408.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.3175, allocations: 7.938 kB / 408.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.838e-05/0.3175, allocations: 12 kB / 408.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.3176, allocations: 3.984 kB / 408.3 MB, free: 24.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.3176, allocations: 8 kB / 408.3 MB, free: 24.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000143/0.3177, allocations: 196.5 kB / 408.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3177, allocations: 0 / 408.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003371/0.3181, allocations: 32 kB / 408.5 MB, free: 23.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.0009953/0.3191, allocations: 424.8 kB / 408.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002164/0.3193, allocations: 83.84 kB / 409 MB, free: 23.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3193, allocations: 0 / 409 MB, free: 23.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.613e-05/0.3194, allocations: 20 kB / 409 MB, free: 23.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.3198, allocations: 76.36 kB / 409.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000569/0.3204, allocations: 0.5065 MB / 409.6 MB, free: 22.87 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001889/0.3206, allocations: 0.7323 MB / 410.3 MB, free: 22.11 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.212e-05/0.3207, allocations: 29.48 kB / 410.3 MB, free: 22.08 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.746e-05/0.3207, allocations: 23.42 kB / 410.4 MB, free: 22.06 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3208, allocations: 0 / 410.4 MB, free: 22.06 MB / 298.7 MB Notification: Performance of Templates: time 0.005316/0.3261, allocations: 2.599 MB / 413 MB, free: 19.49 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches