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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001294, allocations: 107.3 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 192 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 51.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3066, allocations: 49.43 MB / 401.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.00346/0.3101, allocations: 1.887 MB / 403.3 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.3118, allocations: 1.068 MB / 404.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.312, allocations: 7.938 kB / 404.4 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.3127, allocations: 142.3 kB / 404.5 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.313, allocations: 111.5 kB / 404.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006084/0.3136, allocations: 201.6 kB / 404.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.3138, allocations: 183.5 kB / 405 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.314, allocations: 29.53 kB / 405 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.3141, allocations: 83.58 kB / 405.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.3142, allocations: 67.69 kB / 405.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.3142, allocations: 16 kB / 405.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.3144, allocations: 51.95 kB / 405.2 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.244e-05/0.3145, allocations: 43.84 kB / 405.3 MB, free: 5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.472e-05/0.3146, allocations: 67.5 kB / 405.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003289/0.3149, allocations: 208.4 kB / 405.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3149, allocations: 0 / 405.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3149, allocations: 0 / 405.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3149, allocations: 0 / 405.5 MB, free: 4.734 MB / 318.1 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.0006894/0.3156, allocations: 0.507 MB / 406 MB, free: 4.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3157, allocations: 19.89 kB / 406.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.76e-05/0.3157, allocations: 20.66 kB / 406.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.3161, allocations: 258.9 kB / 406.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.3161, allocations: 12.36 kB / 406.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.3161, allocations: 8.125 kB / 406.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.3164, allocations: 146.7 kB / 406.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3165, allocations: 0 / 406.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.3165, allocations: 0 / 406.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3165, allocations: 3.938 kB / 406.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.918e-05/0.3166, allocations: 35.98 kB / 406.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004614/0.3171, allocations: 366.3 kB / 406.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.3173, allocations: 103.9 kB / 407 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.106e-05/0.3174, allocations: 54.5 kB / 407 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.3174, allocations: 0 / 407 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.3176, allocations: 83.23 kB / 407.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.3176, allocations: 0 / 407.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004039/0.318, allocations: 141.4 kB / 407.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.3181, allocations: 128.5 kB / 407.4 MB, free: 2.617 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.3184, allocations: 265 kB / 407.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.3184, allocations: 25.7 kB / 407.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.033e-05/0.3185, allocations: 120 kB / 407.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.728e-05/0.3185, allocations: 15.89 kB / 407.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.271e-05/0.3186, allocations: 33.86 kB / 407.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3187, allocations: 338.7 kB / 408.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.106e-05/0.3188, allocations: 23.98 kB / 408.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.861e-05/0.3189, allocations: 69.88 kB / 408.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.319, allocations: 80.25 kB / 408.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.319, allocations: 0 / 408.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001985/0.3192, allocations: 109.4 kB / 408.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3193, allocations: 11.92 kB / 408.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3193, allocations: 0 / 408.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3193, allocations: 8.125 kB / 408.5 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.74e-05/0.3194, allocations: 8 kB / 408.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3194, allocations: 4 kB / 408.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.585e-05/0.3195, allocations: 15.86 kB / 408.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.3195, allocations: 4 kB / 408.5 MB, free: 1.426 MB / 318.1 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.000131/0.3196, allocations: 145.8 kB / 408.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.641e-05/0.3197, allocations: 61.42 kB / 408.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.415e-05/0.3198, allocations: 25.7 kB / 408.7 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.3198, allocations: 4.062 kB / 408.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3198, allocations: 0 / 408.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3198, allocations: 4.25 kB / 408.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001818/0.32, allocations: 221.6 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.32, allocations: 7.984 kB / 409 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.638e-05/0.32, allocations: 7.938 kB / 409 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.32, allocations: 0 / 409 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.32, allocations: 8 kB / 409 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3201, allocations: 0 / 409 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3201, allocations: 0 / 409 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.3203, allocations: 162.4 kB / 409.1 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-05/0.3204, allocations: 108.8 kB / 409.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.3204, allocations: 4 kB / 409.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.743e-05/0.3205, allocations: 3.984 kB / 409.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.3205, allocations: 11.94 kB / 409.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.3206, allocations: 11.94 kB / 409.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001725/0.3207, allocations: 196.5 kB / 409.5 MB, free: 360 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3207, allocations: 0 / 409.5 MB, free: 360 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.321, allocations: 31.91 kB / 409.5 MB, free: 328 kB / 318.1 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.0009552/0.322, allocations: 421.6 kB / 409.9 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002262/0.3222, allocations: 71.84 kB / 410 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3222, allocations: 4.25 kB / 410 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.869e-05/0.3223, allocations: 20 kB / 410 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004043/0.3227, allocations: 59.33 kB / 410.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005565/0.3233, allocations: 334.7 kB / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3236, allocations: 0.7398 MB / 411.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.344e-05/0.3236, allocations: 19.44 kB / 411.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3236, allocations: 0 / 411.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of Templates: time 0.004759/0.3284, allocations: 2.648 MB / 413.8 MB, free: 12.13 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches